From: Siraaj Khandkar Date: Fri, 8 Feb 2019 03:47:41 +0000 (-0500) Subject: Add uninstall and reinstall recipes X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=86eb090e1fb5ea439287a09cc733460fa5434cde;p=khatus.git Add uninstall and reinstall recipes --- diff --git a/x2/Makefile b/x2/Makefile index e97b61f..43e6967 100644 --- a/x2/Makefile +++ b/x2/Makefile @@ -68,13 +68,22 @@ endef .PHONY: \ build \ install \ + uninstall \ + reinstall \ clean build: | bin build: $(EXECUTABLES) install: - $(foreach filename,$(wildcard bin/*),cp -p "$(filename)" "$(PREFIX)/$(filename)"; ) + @$(foreach filename,$(wildcard bin/*),cp -p "$(filename)" "$(PREFIX)/$(filename)"; ) + +uninstall: + @$(foreach filename,$(wildcard $(PREFIX)/bin/khatus*),rm "$(filename)"; ) + +reinstall: + @$(MAKE) -s uninstall + @$(MAKE) -s install clean: rm -rf bin