move executable to subdir
This commit is contained in:
parent
874187f252
commit
cf119694c1
4 changed files with 26 additions and 8 deletions
15
Makefile
15
Makefile
|
@ -1,16 +1,15 @@
|
||||||
all: lib exe
|
all: quox
|
||||||
|
|
||||||
|
quox: exe
|
||||||
|
cp exe/build/exec/quox .
|
||||||
|
|
||||||
.PHONY: lib
|
.PHONY: lib
|
||||||
lib:
|
lib:
|
||||||
idris2 --build quox.ipkg
|
idris2 --build quox.ipkg
|
||||||
|
|
||||||
depends/quox: lib
|
|
||||||
mkdir -p depends
|
|
||||||
ln -sf ../build/ttc depends/quox
|
|
||||||
|
|
||||||
.PHONY: exe
|
.PHONY: exe
|
||||||
exe: depends/quox
|
exe:
|
||||||
idris2 --build quox-exe.ipkg
|
make -C exe exe
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
|
@ -19,4 +18,6 @@ test:
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -rf build depends
|
rm -rf build depends
|
||||||
|
rm -f quox
|
||||||
|
make -C exe clean
|
||||||
make -C tests clean
|
make -C tests clean
|
||||||
|
|
|
@ -55,7 +55,7 @@ banner opts = unlines $ zipWith (join1 opts) (qtuwu opts) (text opts)
|
||||||
export
|
export
|
||||||
tm : Term 1 2
|
tm : Term 1 2
|
||||||
tm =
|
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))
|
`DCloT` (K One ::: id))
|
||||||
`CloT` (F "y" ::: TYPE (U 1) :# TYPE (U 2) ::: id)
|
`CloT` (F "y" ::: TYPE (U 1) :# TYPE (U 2) ::: id)
|
||||||
|
|
17
exe/Makefile
Normal file
17
exe/Makefile
Normal 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
|
Loading…
Reference in a new issue