From e2999eed45ccd6998c5a692f40b7ff47e1fcb8eb Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sun, 6 Jan 2013 15:30:50 +0100 Subject: Add uninstall target Removes all files from their installed locations. --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 75355fb..4666695 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,14 @@ export DESTDIR ?= /usr/local dirs = src doc conkeror install-dirs = $(addprefix install-,$(dirs)) +uninstall-dirs = $(addprefix uninstall-,$(dirs)) -.PHONY: all $(dirs) +.PHONY: all $(dirs) install $(install-dirs) uninstall $(uninstall-dirs) \ + dvi install-dvi pdf install-pdf ps install-ps all: $(dirs) install: $(install-dirs) +uninstall: $(uninstall-dirs) $(dirs): $(MAKE) -C $@ @@ -14,6 +17,9 @@ $(dirs): $(install-dirs): install-%: $(MAKE) -C $*/ install +$(uninstall-dirs): uninstall-%: + $(MAKE) -C $*/ uninstall + dvi: $(MAKE) -C doc/ dvi -- cgit v1.3-2-g0d8e