Add uninstall and reinstall recipes
authorSiraaj Khandkar <siraaj@khandkar.net>
Fri, 8 Feb 2019 03:47:41 +0000 (22:47 -0500)
committerSiraaj Khandkar <siraaj@khandkar.net>
Fri, 8 Feb 2019 03:47:41 +0000 (22:47 -0500)
x2/Makefile

index e97b61f..43e6967 100644 (file)
@@ -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
This page took 0.03474 seconds and 4 git commands to generate.