diff options
author | euxane | 2024-11-30 12:16:50 +0100 |
---|---|---|
committer | euxane | 2024-11-30 12:16:50 +0100 |
commit | 62f23d9a24e349f57e8857c75bdf2c0ca32c4f70 (patch) | |
tree | 60a6dbfa8de7bcc7dd6c08654f1f62e3dc717992 /makefile | |
parent | f6d0572984f78f400166fc585dd3b3a120101647 (diff) | |
download | tickwatch-62f23d9a24e349f57e8857c75bdf2c0ca32c4f70.tar.gz |
makefile: add
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..8ab718e --- /dev/null +++ b/makefile | |||
@@ -0,0 +1,39 @@ | |||
1 | # tickwatch | ||
2 | # Author: Euxane TRAN-GIRARD | ||
3 | # Licence: EUPL-1.2 | ||
4 | |||
5 | |||
6 | tickwatch: $(wildcard *.nim) | ||
7 | nim c \ | ||
8 | ${NIM_FLAGS} \ | ||
9 | -d:release \ | ||
10 | -o:tickwatch \ | ||
11 | main.nim | ||
12 | |||
13 | .PHONY: clean | ||
14 | clean: | ||
15 | rm -f tickwatch | ||
16 | |||
17 | .PHONY: check | ||
18 | check: | ||
19 | nim r \ | ||
20 | ${NIM_FLAGS} \ | ||
21 | -d:test \ | ||
22 | main.nim | ||
23 | |||
24 | .PHONY: check-loop | ||
25 | check-loop: | ||
26 | watchexec -cclear -r \ | ||
27 | nim r \ | ||
28 | ${NIM_FLAGS} \ | ||
29 | -d:test \ | ||
30 | main.nim | ||
31 | |||
32 | .PHONY: install | ||
33 | install: | ||
34 | nim c \ | ||
35 | ${NIM_FLAGS} \ | ||
36 | -d:release \ | ||
37 | -o:tickwatch \ | ||
38 | --outdir=${DESTDIR}/bin \ | ||
39 | main.nim | ||