]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Fix install paths so that /usr/include also works
authorRobert Millan <rmh@aybabtu.com>
Sun, 19 Mar 2006 11:12:07 +0000 (11:12 +0000)
committerGuillem Jover <guillem@hadrons.org>
Tue, 6 May 2008 05:52:50 +0000 (08:52 +0300)
Makefile

index 89276f34412bb54b771158c481d3726e377b6124..3f5a7981e37af1842beb9810f0302f88c5938e65 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,6 @@ LIB_SRCS := $(patsubst %,src/%,$(LIB_SRCS))
 
 LIB_INCLUDES := bsd/err.h bsd/getopt.h bsd/ip_icmp.h bsd/random.h bsd/queue.h bsd/md5.h bsd/string.h \
                bsd/bsd.h bsd/cdefs.h bsd/stdlib.h vis.h
-LIB_INCLUDES := $(patsubst %,include/%,$(LIB_INCLUDES))
 
 LIB_MANS := arc4random.3 strlcpy.3 fgetln.3 fmtcheck.3
 LIB_MANS := $(patsubst %,man/%,$(LIB_MANS))
@@ -59,7 +58,7 @@ install: libs
        mkdir -p $(DESTDIR)/usr/share/man/man3
        install -m644 $(LIB_STATIC) $(DESTDIR)/usr/lib/
        install -m644 $(LIB_SHARED) $(DESTDIR)/usr/lib/
-       install -m644 $(LIB_INCLUDES) $(DESTDIR)/usr/include/bsd/
+       for i in $(LIB_INCLUDES) ; do install -m644 include/$$i $(DESTDIR)/usr/include/$$i ; done
        install -m644 $(LIB_MANS) $(DESTDIR)/usr/share/man/man3
        cd $(DESTDIR)/usr/lib/ ; ln -fs $(LIB_SHARED) $(LIB_SHARED_SO)
        cd $(DESTDIR)/usr/lib/ ; ln -fs $(LIB_SHARED) $(LIB_SONAME)