2022-05-01 11:11:13 -04:00
|
|
|
all: quox
|
|
|
|
|
2022-05-06 15:35:19 -04:00
|
|
|
# these two are real files, but always ask nix if they need remaking
|
|
|
|
.PHONY: quox
|
2022-05-02 14:51:19 -04:00
|
|
|
quox:
|
2022-05-06 15:35:19 -04:00
|
|
|
nix build --no-link '.#quox'
|
|
|
|
ln -sfL $$(nix path-info '.#quox')/bin/quox quox
|
2022-05-02 14:51:19 -04:00
|
|
|
|
2022-05-06 15:35:19 -04:00
|
|
|
.PHONY: quox-tests
|
2022-05-02 14:51:19 -04:00
|
|
|
quox-tests:
|
2022-05-06 15:35:19 -04:00
|
|
|
nix build --no-link '.#quox-tests'
|
|
|
|
ln -sfL $$(nix path-info '.#quox-tests')/bin/quox-tests quox-tests
|
|
|
|
|
2022-04-27 14:07:08 -04:00
|
|
|
|
|
|
|
.PHONY: lib
|
|
|
|
lib:
|
2022-05-08 13:28:49 -04:00
|
|
|
nix build --no-link '.#quox-lib'
|
2022-04-27 14:07:08 -04:00
|
|
|
|
|
|
|
.PHONY: test
|
2022-05-04 12:49:00 -04:00
|
|
|
test:
|
2022-05-24 06:09:17 -04:00
|
|
|
nix run -- '.#quox-tests' -V 14 -c
|
2022-05-01 20:41:00 -04:00
|
|
|
|
|
|
|
.PHONY: prove
|
2022-05-06 15:35:19 -04:00
|
|
|
prove:
|
2022-05-08 13:28:49 -04:00
|
|
|
nix build --no-link '.#quox-tests'
|
2022-05-06 15:35:19 -04:00
|
|
|
prove $$(nix path-info '.#quox-tests')/bin/quox-tests
|
2022-04-27 14:07:08 -04:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2022-05-04 12:49:00 -04:00
|
|
|
rm -f quox quox-tests result
|