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

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
build build
depends
*~ *~

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

18
tests/Makefile Normal file
View file

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