Add some PHONYs to the install target in Makefiles.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20090821091758-6am9fbkvy9doooef
This commit is contained in:
Juan RP 2009-08-21 11:17:58 +02:00
parent 5b927b4759
commit 4aac305105
5 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,7 @@ install:
@echo "WARNING: Don't forget to rerun ldconfig(1)." @echo "WARNING: Don't forget to rerun ldconfig(1)."
@echo @echo
.PHONY: uninstall
uninstall: uninstall:
-rm -f $(SBINDIR)/xbps-* -rm -f $(SBINDIR)/xbps-*
-rm -f $(LIBDIR)/libxbps.* -rm -f $(LIBDIR)/libxbps.*

View File

@ -11,6 +11,7 @@ all:
clean: clean:
-rm -f $(CONF_FILE).new -rm -f $(CONF_FILE).new
.PHONY: install
install: install:
if [ ! -d $(DESTDIR)$(ETCDIR) ]; then \ if [ ! -d $(DESTDIR)$(ETCDIR) ]; then \
install -d $(DESTDIR)$(ETCDIR); \ install -d $(DESTDIR)$(ETCDIR); \

View File

@ -26,6 +26,7 @@ $(LIBXBPS_STATIC): $(OBJECTS)
$(AR) rcs $@ $^ $(AR) rcs $@ $^
ranlib $@ ranlib $@
.PHONY: install
install: $(LIBXBPS) $(LIBXBPS_STATIC) install: $(LIBXBPS) $(LIBXBPS_STATIC)
install -d $(LIBDIR) install -d $(LIBDIR)
install -m 644 $(LIBXBPS_STATIC) $(LIBDIR) install -m 644 $(LIBXBPS_STATIC) $(LIBDIR)

View File

@ -17,6 +17,7 @@ clean-bins:
clean-objs: clean-objs:
-rm -f $(OBJS) -rm -f $(OBJS)
.PHONY: install
install: $(BIN) install: $(BIN)
install -d $(SBINDIR) install -d $(SBINDIR)
install $(INSTALL_STRIPPED) -m 755 $(BIN) $(SBINDIR) install $(INSTALL_STRIPPED) -m 755 $(BIN) $(SBINDIR)

View File

@ -6,6 +6,7 @@ all:
.PHONY: clean .PHONY: clean
clean: clean:
.PHONY: install
install: install:
if [ ! -d $(DESTDIR)$(SHAREDIR) ]; then \ if [ ! -d $(DESTDIR)$(SHAREDIR) ]; then \
install -d $(DESTDIR)$(SHAREDIR); \ install -d $(DESTDIR)$(SHAREDIR); \