quox/Makefile

39 lines
809 B
Makefile
Raw Permalink Normal View History

2022-05-01 11:11:13 -04:00
all: quox
2022-05-25 10:01:54 -04:00
NIXFLAGS := --no-warn-dirty
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-25 10:01:54 -04:00
@echo [build] quox
nix build $(NIXFLAGS) --no-link '.#quox'
ln -sfL $$(nix path-info $(NIXFLAGS) '.#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-25 10:01:54 -04:00
@echo [build] quox-tests
nix build $(NIXFLAGS) --no-link '.#quox-tests'
ln -sfL $$(nix path-info $(NIXFLAGS) '.#quox-tests')/bin/quox-tests quox-tests
2022-05-06 15:35:19 -04:00
2022-04-27 14:07:08 -04:00
.PHONY: lib
lib:
2022-05-25 10:01:54 -04:00
@echo [build] quox-lib
nix build $(NIXFLAGS) --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-25 10:01:54 -04:00
nix run $(NIXFLAGS) -- '.#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-25 10:01:54 -04:00
nix build $(NIXFLAGS) --no-link '.#quox-tests'
prove $$(nix path-info $(NIXFLAGS) '.#quox-tests')/bin/quox-tests
2022-04-27 14:07:08 -04:00
.PHONY: clean
clean:
2022-05-25 10:01:54 -04:00
@echo [clean]
2022-05-04 12:49:00 -04:00
rm -f quox quox-tests result
2022-05-25 10:01:54 -04:00
.SILENT: