From 62f23d9a24e349f57e8857c75bdf2c0ca32c4f70 Mon Sep 17 00:00:00 2001 From: euxane Date: Sat, 30 Nov 2024 12:16:50 +0100 Subject: makefile: add --- makefile | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 makefile (limited to 'makefile') diff --git a/makefile b/makefile new file mode 100644 index 0000000..8ab718e --- /dev/null +++ b/makefile @@ -0,0 +1,39 @@ +# tickwatch +# Author: Euxane TRAN-GIRARD +# Licence: EUPL-1.2 + + +tickwatch: $(wildcard *.nim) + nim c \ + ${NIM_FLAGS} \ + -d:release \ + -o:tickwatch \ + main.nim + +.PHONY: clean +clean: + rm -f tickwatch + +.PHONY: check +check: + nim r \ + ${NIM_FLAGS} \ + -d:test \ + main.nim + +.PHONY: check-loop +check-loop: + watchexec -cclear -r \ + nim r \ + ${NIM_FLAGS} \ + -d:test \ + main.nim + +.PHONY: install +install: + nim c \ + ${NIM_FLAGS} \ + -d:release \ + -o:tickwatch \ + --outdir=${DESTDIR}/bin \ + main.nim -- cgit v1.2.3