From 2efadaadac5bc890a595f59fa8c2fb82974a1e46 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Thu, 21 Dec 2017 03:18:00 +0100 Subject: [PATCH] Emacsg: make: Add clean target --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1ebcf1b..1cc4e36 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ EMACS ?= emacs -.PHONY: all help build build-init quick bootstrap +.PHONY: all help build build-init quick bootstrap clean .FORCE: all: build @@ -26,6 +26,7 @@ help: $(info make lib/DRONE = rebuild DRONE) $(info make build-init = rebuild init files) $(info make bootstrap = bootstrap collective or new drones) + $(info make clean = remove all *.elc and *-autoloads.el) @printf "\n" build: @@ -58,3 +59,8 @@ bootstrap: @bin/borg-bootstrap @printf "\n=== Running 'make build' ===\n\n" @make build + +clean: + @find lib -name '*-autoloads.el' -exec rm '{}' ';' + @find lib -name '*.elc' -exec rm '{}' ';' + @rm -f init.elc