Commit f960fc57a4ed

Vincent Demeester <vincent@sbr.pm>
2020-09-07 12:06:39
Makefile: clean targets
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 26f874f
Changed files (1)
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: