quox/Makefile
2022-05-06 21:37:00 +02:00

30 lines
566 B
Makefile

all: quox
# these two are real files, but always ask nix if they need remaking
.PHONY: quox
quox:
nix build --no-link '.#quox'
ln -sfL $$(nix path-info '.#quox')/bin/quox quox
.PHONY: quox-tests
quox-tests:
nix build --no-link '.#quox-tests'
ln -sfL $$(nix path-info '.#quox-tests')/bin/quox-tests quox-tests
.PHONY: lib
lib:
nix build '.#quox-lib'
.PHONY: test
test:
nix run -- '.#quox-tests' -V 14
.PHONY: prove
prove:
nix build '.#quox-tests'
prove $$(nix path-info '.#quox-tests')/bin/quox-tests
.PHONY: clean
clean:
rm -f quox quox-tests result