From: Felix Fietkau Date: Sun, 13 Apr 2008 13:20:29 +0000 (+0200) Subject: add make install to the uci build directory X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=66311debd9b145ae37087df7c7f3ed16a3852090;p=uci.git add make install to the uci build directory --- diff --git a/Makefile b/Makefile index edbdc4e..421c2d9 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,9 @@ PLUGIN_SUPPORT=1 DEBUG=0 DEBUG_TYPECAST=0 +prefix=/usr +DESTDIR= + COPTS=-O2 WOPTS=-pedantic -Wno-unused -Werror FPIC=-fPIC @@ -15,6 +18,7 @@ LD=ld CC=gcc LIBS=-lc RANLIB=ranlib +INSTALL=install ifeq ($(DEBUG),1) COPTS = -O0 @@ -77,5 +81,11 @@ libuci.$(SHLIB_EXT): libuci-shared.o clean: rm -f uci uci-static *.[oa] *.so* *.dylib* uci_config.h +install: all + $(INSTALL) -m0644 libuci.a $(DESTDIR)$(prefix)/lib/ + $(INSTALL) -m0755 $(SHLIB_FILE) $(DESTDIR)$(prefix)/lib/ + ln -sf $(SHLIB_FILE) $(DESTDIR)$(prefix)/lib/libuci.$(SHLIB_EXT) + $(INSTALL) -m0755 uci $(DESTDIR)/usr/bin/ + FORCE: ; .PHONY: FORCE