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

View File

@ -55,7 +55,7 @@ banner opts = unlines $ zipWith (join1 opts) (qtuwu opts) (text opts)
export
tm : Term 1 2
tm =
(Pi Zero One "a" (BVT 0) (TUsed $ E (F "F" :@@ [BVT 0, FT "w"]))
(Pi One "a" (BVT 0) (TUsed $ E (F "F" :@@ [BVT 0, FT "w"]))
`DCloT` (K One ::: id))
`CloT` (F "y" ::: TYPE (U 1) :# TYPE (U 2) ::: id)

17
exe/Makefile Normal file
View File

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