]> pilppa.com Git - uci.git/commitdiff
install development headers
authorFelix Fietkau <nbd@openwrt.org>
Fri, 14 Nov 2008 21:20:27 +0000 (22:20 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 14 Nov 2008 21:20:27 +0000 (22:20 +0100)
Makefile

index 3e1d7ac74f3175a69e845454bbbae6737d61319a..69a74317010a5b10f1e0cfcd048195503d4bc5f6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -55,9 +55,15 @@ libuci.$(SHLIB_EXT): libuci-shared.o
 clean:
        rm -f uci uci-static *.[oa] *.so* *.dylib* uci_config.h
 
-install: all
+install: install-bin install-dev
+
+install-dev: all
        $(MKDIR) -p $(DESTDIR)$(prefix)/lib
+       $(MKDIR) -p $(DESTDIR)$(prefix)/include
        $(INSTALL) -m0644 libuci.a $(DESTDIR)$(prefix)/lib/
+       $(INSTALL) -m0644 uci_config.h uci.h $(DESTDIR)$(prefix)/include/
+
+install-bin: all
        $(INSTALL) -m0755 $(SHLIB_FILE) $(DESTDIR)$(prefix)/lib/
        ln -sf $(SHLIB_FILE) $(DESTDIR)$(prefix)/lib/libuci.$(SHLIB_EXT)
        $(MKDIR) -p $(DESTDIR)$(prefix)/bin