From 213d8d8934f797849eb80b7ac06b6d37f3090e40 Mon Sep 17 00:00:00 2001 From: Jens Muecke Date: Sun, 24 Aug 2008 19:28:09 +0200 Subject: [PATCH] Add mkdir to Makefile and Makefile.inc, use $prefix for binary --- Makefile | 4 +++- Makefile.inc | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1016fac..3e1d7ac 100644 --- a/Makefile +++ b/Makefile @@ -56,10 +56,12 @@ clean: rm -f uci uci-static *.[oa] *.so* *.dylib* uci_config.h install: all + $(MKDIR) -p $(DESTDIR)$(prefix)/lib $(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/ + $(MKDIR) -p $(DESTDIR)$(prefix)/bin + $(INSTALL) -m0755 uci $(DESTDIR)$(prefix)/bin/ test: all make -C test diff --git a/Makefile.inc b/Makefile.inc index 2578c72..44c6aa5 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -11,6 +11,7 @@ LD=ld CC=gcc RANLIB=ranlib INSTALL=install +MKDIR=mkdir ifeq ($(DEBUG),1) COPTS = -O0 -- 2.41.1