From 66311debd9b145ae37087df7c7f3ed16a3852090 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 13 Apr 2008 15:20:29 +0200 Subject: [PATCH] add make install to the uci build directory --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 2.25.1