makefiles. again
This commit is contained in:
parent
1eace0039e
commit
45825ebc17
3 changed files with 41 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
build
|
build
|
||||||
|
depends
|
||||||
*~
|
*~
|
||||||
|
|
22
Makefile
Normal file
22
Makefile
Normal 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
18
tests/Makefile
Normal 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
|
Loading…
Reference in a new issue