Bah, fix these stupid make targets.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091030163209-td7vxbq5vkxva5zc
This commit is contained in:
Juan RP 2009-10-30 17:32:09 +01:00
parent 5b6724b550
commit 10f2bef7cb
2 changed files with 6 additions and 3 deletions

View File

@ -46,10 +46,11 @@ install: all
install -d $(LIBDIR)
ifdef STATIC
install -m 644 libxbps.a $(LIBDIR)
endif
else
install -m 644 $(LIBXBPS_SHLIB) $(LIBDIR)
cp -a libxbps.so $(LIBDIR)
cp -a libxbps.so.$(LIBMAJOR) $(LIBDIR)
endif
.PHONY: uninstall
uninstall:

View File

@ -3,6 +3,7 @@ MAN ?= $(BIN).8
ifdef STATIC
all: $(BIN).static
MAN =
else
LDFLAGS = -lxbps
all: $(BIN) $(MAN)
@ -26,10 +27,11 @@ clean:
-rm -f $(OBJS)
.PHONY: install
install: $(BIN) $(MAN)
install: all
install -d $(SBINDIR)
ifndef STATIC
install $(INSTALL_STRIPPED) -m 755 $(BIN) $(SBINDIR)
ifdef STATIC
else
install $(INSTALL_STRIPPED) -m 755 $(BIN).static $(SBINDIR)
endif
ifdef MAN