diff --git a/Makefile b/Makefile index 8f204b8e..ab63ee57 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,7 @@ install: @echo "WARNING: Don't forget to rerun ldconfig(1)." @echo +.PHONY: uninstall uninstall: -rm -f $(SBINDIR)/xbps-* -rm -f $(LIBDIR)/libxbps.* diff --git a/etc/Makefile b/etc/Makefile index e4768c2b..3c486c0c 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -11,6 +11,7 @@ all: clean: -rm -f $(CONF_FILE).new +.PHONY: install install: if [ ! -d $(DESTDIR)$(ETCDIR) ]; then \ install -d $(DESTDIR)$(ETCDIR); \ diff --git a/lib/Makefile b/lib/Makefile index e4cfda19..978151f1 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -26,6 +26,7 @@ $(LIBXBPS_STATIC): $(OBJECTS) $(AR) rcs $@ $^ ranlib $@ +.PHONY: install install: $(LIBXBPS) $(LIBXBPS_STATIC) install -d $(LIBDIR) install -m 644 $(LIBXBPS_STATIC) $(LIBDIR) diff --git a/prog.mk b/prog.mk index 02d2709c..09dbd1ea 100644 --- a/prog.mk +++ b/prog.mk @@ -17,6 +17,7 @@ clean-bins: clean-objs: -rm -f $(OBJS) +.PHONY: install install: $(BIN) install -d $(SBINDIR) install $(INSTALL_STRIPPED) -m 755 $(BIN) $(SBINDIR) diff --git a/shutils/Makefile b/shutils/Makefile index 7e2b688e..1de0bfeb 100644 --- a/shutils/Makefile +++ b/shutils/Makefile @@ -6,6 +6,7 @@ all: .PHONY: clean clean: +.PHONY: install install: if [ ! -d $(DESTDIR)$(SHAREDIR) ]; then \ install -d $(DESTDIR)$(SHAREDIR); \