From 818d559d58f048f5137b740b82bbf93a1a5e9f2b Mon Sep 17 00:00:00 2001 From: rhiannon morris Date: Wed, 25 May 2022 16:01:54 +0200 Subject: [PATCH] shut up about dirty git trees --- Makefile | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index f4aa5c5..6f2fcd7 100644 --- a/Makefile +++ b/Makefile @@ -1,30 +1,38 @@ all: quox +NIXFLAGS := --no-warn-dirty + # 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 + @echo [build] quox + nix build $(NIXFLAGS) --no-link '.#quox' + ln -sfL $$(nix path-info $(NIXFLAGS) '.#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 + @echo [build] quox-tests + nix build $(NIXFLAGS) --no-link '.#quox-tests' + ln -sfL $$(nix path-info $(NIXFLAGS) '.#quox-tests')/bin/quox-tests quox-tests .PHONY: lib lib: - nix build --no-link '.#quox-lib' + @echo [build] quox-lib + nix build $(NIXFLAGS) --no-link '.#quox-lib' .PHONY: test test: - nix run -- '.#quox-tests' -V 14 -c + nix run $(NIXFLAGS) -- '.#quox-tests' -V 14 -c .PHONY: prove prove: - nix build --no-link '.#quox-tests' - prove $$(nix path-info '.#quox-tests')/bin/quox-tests + nix build $(NIXFLAGS) --no-link '.#quox-tests' + prove $$(nix path-info $(NIXFLAGS) '.#quox-tests')/bin/quox-tests .PHONY: clean clean: + @echo [clean] rm -f quox quox-tests result + +.SILENT: