makefile fixes
This commit is contained in:
parent
1dd4ff0e22
commit
d43a2429e1
1 changed files with 12 additions and 7 deletions
19
Makefile
19
Makefile
|
@ -1,24 +1,29 @@
|
||||||
all: quox
|
all: quox
|
||||||
|
|
||||||
|
# these two are real files, but always ask nix if they need remaking
|
||||||
|
.PHONY: quox
|
||||||
quox:
|
quox:
|
||||||
nix build '.#quox-exe'
|
nix build --no-link '.#quox'
|
||||||
ln -sfL $$(realpath result/bin/quox) quox
|
ln -sfL $$(nix path-info '.#quox')/bin/quox quox
|
||||||
|
|
||||||
|
.PHONY: quox-tests
|
||||||
quox-tests:
|
quox-tests:
|
||||||
nix build '.#quox-tests'
|
nix build --no-link '.#quox-tests'
|
||||||
ln -sfL $$(realpath result/bin/quox-tests) quox-tests
|
ln -sfL $$(nix path-info '.#quox-tests')/bin/quox-tests quox-tests
|
||||||
|
|
||||||
|
|
||||||
.PHONY: lib
|
.PHONY: lib
|
||||||
lib:
|
lib:
|
||||||
nix build '.#quox'
|
nix build '.#quox-lib'
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
nix run -- '.#quox-tests' -V 14
|
nix run -- '.#quox-tests' -V 14
|
||||||
|
|
||||||
.PHONY: prove
|
.PHONY: prove
|
||||||
prove: quox-tests
|
prove:
|
||||||
prove ./quox-tests
|
nix build '.#quox-tests'
|
||||||
|
prove $$(nix path-info '.#quox-tests')/bin/quox-tests
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Reference in a new issue