makefiles. again

This commit is contained in:
rhiannon morris 2022-04-27 20:07:08 +02:00
parent 1eace0039e
commit 45825ebc17
3 changed files with 41 additions and 0 deletions

22
Makefile Normal file
View file

@ -0,0 +1,22 @@
all: lib exe
.PHONY: lib
lib:
idris2 --build quox.ipkg
depends/quox: lib
mkdir -p depends
ln -sf ../build/ttc depends/quox
.PHONY: exe
exe: depends/quox
idris2 --build quox-exe.ipkg
.PHONY: test
test:
make -C tests test
.PHONY: clean
clean:
rm -rf build depends
make -C tests clean