Added uninstall

This commit is contained in:
matthias@arch 2022-09-11 01:24:44 +02:00
parent 41d72a26f4
commit 147f3aa4c0

View File

@ -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 $@