commit f960fc57a4ed639449d9c9c20f9a3fa7bb509211 parent 26f874f171307c5d8290fa25306a4f1da7368e65 Author: Vincent Demeester <vincent@sbr.pm> Date: Mon, 7 Sep 2020 12:06:39 +0200 Makefile: clean targets Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | Makefile | | | 20 | +++++++++----------- |
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/Makefile b/Makefile @@ -20,10 +20,6 @@ all: switch emacs-dump update: nix-channel --update -.PHONY: pull -pull: - (cd overlays/emacs-overlay && git checkout master && git pull --rebase) - .PHONY: emacs-dump emacs-dump: emacs --batch -q -l ~/.config/emacs/dump.el @@ -72,13 +68,15 @@ fmt: # Cleaning .PHONY: clean -clean: - @if test $(USER) = root;\ - then\ - nix-env --profile /nix/var/nix/profiles/system --delete-generations 15d;\ - else\ - unlink result || true;\ - fi +clean: clean-system clean-results + +.PHONY: clean-system +clean-system: + nix-env --profile /nix/var/nix/profiles/system --delete-generations 15d + +.PHONY: clean-results +clean-results: + unlink results .PHONY: clean-www clean-www: