summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick Hanley <nicholasjhanley@gmail.com>2022-02-24 00:09:38 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2022-03-16 09:16:46 +0000
commit7939f5a046fdc999cd9d487bb65dddd7cc6712ad (patch)
treee7d192dcc80fbce157074eeaec6f9de12556a2d2 /Makefile
parent3e33c9fc71083e65ebfec415efdba01c62651a20 (diff)
downloadalpine-conf-7939f5a046fdc999cd9d487bb65dddd7cc6712ad.zip
Makefile: uninstall bin/ and etc/lbu/ files too
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3689ac3..76a9d34 100644
--- a/Makefile
+++ b/Makefile
@@ -79,12 +79,18 @@ install: $(BIN_FILES) $(SBIN_FILES) $(LIB_FILES) $(ETC_LBU_FILES)
install -m 644 $(ETC_LBU_FILES) $(DESTDIR)/$(sysconfdir)
uninstall:
+ for i in $(BIN_FILES); do \
+ rm -f "$(DESTDIR)/$(PREFIX)/bin/$$i";\
+ done
for i in $(SBIN_FILES); do \
rm -f "$(DESTDIR)/$(PREFIX)/sbin/$$i";\
done
for i in $(LIB_FILES); do \
rm -f "$(DESTDIR)/$(PREFIX)/lib/$$i";\
done
+ for i in $(ETC_LBU_FILES); do \
+ rm -f "$(DESTDIR)/$(sysconfdir)/$$i";\
+ done
clean:
rm -rf $(SCRIPTS) $(BIN_FILES)