-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (32 loc) · 1.18 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# -------------------------------------------------------------
# Alkane :: Build
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: BSD-2-Clause
# -------------------------------------------------------------
CARGO=cargo
MKDIRHIER=mkdir -p
WGET=wget
RM=rm -rf
# -------------------------------------------------------------
# Main targets
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
all: data build
clean: clean-data clean-build
# -------------------------------------------------------------
# Build targets
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
data: src/data/public_suffix_list.dat
build: target/release/alkane
src/data/public_suffix_list.dat:
${MKDIRHIER} src/data
${WGET} -O src/data/public_suffix_list.dat https://publicsuffix.org/list/public_suffix_list.dat
target/release/alkane:
cd src && ${CARGO} build --release
# -------------------------------------------------------------
# Clean targets
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
clean-data:
${RM} src/data/public_suffix_list.dat
clean-build:
${RM} target/release