shut up about dirty git trees
This commit is contained in:
parent
3cf246b4dc
commit
818d559d58
1 changed files with 16 additions and 8 deletions
24
Makefile
24
Makefile
|
@ -1,30 +1,38 @@
|
||||||
all: quox
|
all: quox
|
||||||
|
|
||||||
|
NIXFLAGS := --no-warn-dirty
|
||||||
|
|
||||||
# these two are real files, but always ask nix if they need remaking
|
# these two are real files, but always ask nix if they need remaking
|
||||||
.PHONY: quox
|
.PHONY: quox
|
||||||
quox:
|
quox:
|
||||||
nix build --no-link '.#quox'
|
@echo [build] quox
|
||||||
ln -sfL $$(nix path-info '.#quox')/bin/quox quox
|
nix build $(NIXFLAGS) --no-link '.#quox'
|
||||||
|
ln -sfL $$(nix path-info $(NIXFLAGS) '.#quox')/bin/quox quox
|
||||||
|
|
||||||
.PHONY: quox-tests
|
.PHONY: quox-tests
|
||||||
quox-tests:
|
quox-tests:
|
||||||
nix build --no-link '.#quox-tests'
|
@echo [build] quox-tests
|
||||||
ln -sfL $$(nix path-info '.#quox-tests')/bin/quox-tests quox-tests
|
nix build $(NIXFLAGS) --no-link '.#quox-tests'
|
||||||
|
ln -sfL $$(nix path-info $(NIXFLAGS) '.#quox-tests')/bin/quox-tests quox-tests
|
||||||
|
|
||||||
|
|
||||||
.PHONY: lib
|
.PHONY: lib
|
||||||
lib:
|
lib:
|
||||||
nix build --no-link '.#quox-lib'
|
@echo [build] quox-lib
|
||||||
|
nix build $(NIXFLAGS) --no-link '.#quox-lib'
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
nix run -- '.#quox-tests' -V 14 -c
|
nix run $(NIXFLAGS) -- '.#quox-tests' -V 14 -c
|
||||||
|
|
||||||
.PHONY: prove
|
.PHONY: prove
|
||||||
prove:
|
prove:
|
||||||
nix build --no-link '.#quox-tests'
|
nix build $(NIXFLAGS) --no-link '.#quox-tests'
|
||||||
prove $$(nix path-info '.#quox-tests')/bin/quox-tests
|
prove $$(nix path-info $(NIXFLAGS) '.#quox-tests')/bin/quox-tests
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
@echo [clean]
|
||||||
rm -f quox quox-tests result
|
rm -f quox quox-tests result
|
||||||
|
|
||||||
|
.SILENT:
|
||||||
|
|
Loading…
Reference in a new issue