From: Felix Fietkau Date: Fri, 14 Nov 2008 21:20:27 +0000 (+0100) Subject: install development headers X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=bc7d0c4049b516945d4adae203575f8eddd94ce4;p=uci.git install development headers --- diff --git a/Makefile b/Makefile index 3e1d7ac..69a7431 100644 --- 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