mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-10 03:33:12 +01:00
Add new path variables
This commit is contained in:
parent
8c7f053ab0
commit
ff8539bc03
33
Makefile
33
Makefile
@ -40,6 +40,14 @@ LIB_SHARED_OBJS = $(LIB_SRCS:%.c=%.lo)
|
|||||||
|
|
||||||
MK_CFLAGS = -Iinclude/ -include bsd/bsd.h -D_GNU_SOURCE -D__REENTRANT
|
MK_CFLAGS = -Iinclude/ -include bsd/bsd.h -D_GNU_SOURCE -D__REENTRANT
|
||||||
|
|
||||||
|
prefix := /usr
|
||||||
|
exec_prefix :=
|
||||||
|
libdir := ${exec_prefix}/lib
|
||||||
|
usrlibdir := ${prefix}/lib
|
||||||
|
includedir := ${prefix}/include
|
||||||
|
pkgconfigdir := ${usrlibdir}/pkgconfig
|
||||||
|
mandir := ${prefix}/share/man
|
||||||
|
|
||||||
libs: $(LIB_STATIC) $(LIB_SHARED_SO)
|
libs: $(LIB_STATIC) $(LIB_SHARED_SO)
|
||||||
|
|
||||||
man: $(LIB_MANS)
|
man: $(LIB_MANS)
|
||||||
@ -84,17 +92,20 @@ dist: ChangeLog
|
|||||||
gpg -a -b $(TAR_FILE)
|
gpg -a -b $(TAR_FILE)
|
||||||
|
|
||||||
install: libs man
|
install: libs man
|
||||||
mkdir -p $(DESTDIR)/usr/lib/ $(DESTDIR)/lib/
|
mkdir -p $(DESTDIR)/$(libdir)
|
||||||
mkdir -p $(DESTDIR)/usr/include/bsd/
|
mkdir -p $(DESTDIR)/$(usrlibdir)
|
||||||
mkdir -p $(DESTDIR)/usr/share/man/man3
|
mkdir -p $(DESTDIR)/$(includedir)/bsd/
|
||||||
mkdir -p $(DESTDIR)/usr/lib/pkgconfig
|
mkdir -p $(DESTDIR)/$(mandir)/man3
|
||||||
install -m644 $(LIB_STATIC) $(DESTDIR)/usr/lib/
|
mkdir -p $(DESTDIR)/$(pkgconfigdir)
|
||||||
install -m644 $(LIB_SHARED) $(DESTDIR)/lib/
|
install -m644 $(LIB_STATIC) $(DESTDIR)/$(usrlibdir)
|
||||||
for i in $(LIB_INCLUDES) ; do install -m644 include/$$i $(DESTDIR)/usr/include/$$i ; done
|
install -m644 $(LIB_SHARED) $(DESTDIR)/$(libdir)
|
||||||
install -m644 $(LIB_MANS) $(DESTDIR)/usr/share/man/man3
|
for i in $(LIB_INCLUDES); do \
|
||||||
install -m644 $(LIB_PKGCONFIG) $(DESTDIR)/usr/lib/pkgconfig
|
install -m644 include/$$i $(DESTDIR)/$(includedir)/$$i; \
|
||||||
ln -sf /lib/$(LIB_SHARED) $(DESTDIR)/usr/lib/$(LIB_SHARED_SO)
|
done
|
||||||
ln -sf $(LIB_SHARED) $(DESTDIR)/lib/$(LIB_SONAME)
|
install -m644 $(LIB_MANS) $(DESTDIR)/$(mandir)/man3
|
||||||
|
install -m644 $(LIB_PKGCONFIG) $(DESTDIR)/$(pkgconfigdir)
|
||||||
|
ln -sf $(libdir)/$(LIB_SHARED) $(DESTDIR)/$(usrlibdir)/$(LIB_SHARED_SO)
|
||||||
|
ln -sf $(LIB_SHARED) $(DESTDIR)/$(libdir)/$(LIB_SONAME)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(LIB_GEN_SRCS)
|
rm -f $(LIB_GEN_SRCS)
|
||||||
|
Loading…
Reference in New Issue
Block a user