-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (36 loc) · 1.38 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
45
46
47
48
49
50
51
# -------------------------------------------------------------
# Nasqueron Datasources
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: BSD-2-Clause
# -------------------------------------------------------------
PREFIX=/usr/local
CARGO=${HOME}/.cargo/bin/cargo
INSTALL=install
RM=rm -rf
# -------------------------------------------------------------
# Main targets
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
all: build
build: target/release
test:
RUST_TEST_THREADS=1 ${CARGO} test
clean:
${RM} target
clean-all:
${CARGO} clean
install: ${PREFIX}/bin/fantoir-datasource ${PREFIX}/bin/language-subtag-registry-datasource ${PREFIX}/bin/rfc-datasource
# -------------------------------------------------------------
# Build
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
target/release:
${CARGO} build --release
# -------------------------------------------------------------
# Install
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
${PREFIX}/bin/fantoir-datasource:
${INSTALL} target/release/fantoir-datasource ${PREFIX}/bin/
${PREFIX}/bin/language-subtag-registry-datasource:
${INSTALL} target/release/language-subtag-registry-datasource ${PREFIX}/bin/
${PREFIX}/bin/rfc-datasource:
${INSTALL} target/release/rfc-datasource ${PREFIX}/bin/