commit a97079db345a0ab584483de1c395b1d3940b3348
parent 3081e6cf5d662e411ccc07047636993f0823f47c
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Fri,  4 Sep 2020 22:19:38 +0200

Add uninstall to Makefile

Diffstat:
MMakefile | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,9 +1,10 @@ -obj = $(basename $(wildcard *.sh) $(wildcard *.py)) +src = $(wildcard *.sh) $(wildcard *.py) +obj = $(patsubst %,$(dest)/%,$(basename $(src))) dest = /usr/local/bin -.PHONY: all +.PHONY: install uninstall -all: $(patsubst %, $(dest)/%, $(obj)) +install: $(obj) $(dest)/%: %.sh cp -f $< $@ @@ -12,3 +13,6 @@ $(dest)/%: %.sh $(dest)/%: %.py cp -f $< $@ chmod 755 $@ + +uninstall: + rm -f $(obj)