quox/Makefile

31 lines
566 B
Makefile
Raw Normal View History

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