From 147f3aa4c04875ca38af029e88e4b8d81699bd2c Mon Sep 17 00:00:00 2001 From: "matthias@arch" Date: Sun, 11 Sep 2022 01:24:44 +0200 Subject: [PATCH] Added uninstall --- src/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Makefile b/src/Makefile index c93bbb4..5a519f2 100755 --- a/src/Makefile +++ b/src/Makefile @@ -47,6 +47,13 @@ install: $(LIB) $(HEADER_INST) install -D -m 755 $< $(DESTDIR)/usr/lib/$(subst ../,,$<) install -D -m 755 ../gen_enum_str.py $(DESTDIR)/usr/bin/gz-enum-str +uninstall: + -rm $(DESTDIR)/usr/lib/$(subst ../,,$(LIB)) + -rm $(DESTDIR)/usr/bin/gz-enum-str + -rm -r $(DESTDIR)/usr/include/gz-util/ + -rm $(OBJECT_DIR)/*.stamp + + $(OBJECT_DIR)/%.stamp: %.hpp $(OBJECT_DIR) install -D -m 644 $< $(DESTDIR)/usr/include/gz-util/$< touch $@