move executable to subdir

This commit is contained in:
rhiannon morris 2022-05-01 17:11:13 +02:00
parent 874187f252
commit cf119694c1
4 changed files with 26 additions and 8 deletions

View file

@ -1,16 +1,15 @@
all: lib exe
all: quox
quox: exe
cp exe/build/exec/quox .
.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
exe:
make -C exe exe
.PHONY: test
test:
@ -19,4 +18,6 @@ test:
.PHONY: clean
clean:
rm -rf build depends
rm -f quox
make -C exe clean
make -C tests clean