update makefile
This commit is contained in:
parent
d61101f786
commit
5ee637cf4d
1 changed files with 8 additions and 11 deletions
19
Makefile
19
Makefile
|
@ -1,20 +1,20 @@
|
|||
all: quox
|
||||
|
||||
quox:
|
||||
(cd exe; sirdi build)
|
||||
ln -sf exe/build/exec/main $@
|
||||
nix build '.#quox-exe'
|
||||
ln -sfL $$(realpath result/bin/quox) quox
|
||||
|
||||
quox-tests:
|
||||
(cd tests; sirdi build)
|
||||
ln -sf tests/build/exec/main $@
|
||||
nix build '.#quox-tests'
|
||||
ln -sfL $$(realpath result/bin/quox-tests) quox-tests
|
||||
|
||||
.PHONY: lib
|
||||
lib:
|
||||
sirdi build
|
||||
nix build '.#quox'
|
||||
|
||||
.PHONY: test
|
||||
test: quox-tests
|
||||
./quox-tests -V 14
|
||||
test:
|
||||
nix run -- '.#quox-tests' -V 14
|
||||
|
||||
.PHONY: prove
|
||||
prove: quox-tests
|
||||
|
@ -22,7 +22,4 @@ prove: quox-tests
|
|||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
$(RM) quox quox-tests
|
||||
sirdi clean
|
||||
(cd exe; sirdi clean)
|
||||
(cd tests; sirdi clean)
|
||||
rm -f quox quox-tests result
|
||||
|
|
Loading…
Reference in a new issue