diff --git a/lib/Makefile b/lib/Makefile index 7d670f3d..ff44993d 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -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: diff --git a/prog.mk b/prog.mk index 3891d786..38b74b1f 100644 --- a/prog.mk +++ b/prog.mk @@ -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