projects
/
project
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8cf809
)
Add mkdir to Makefile and Makefile.inc, use $prefix for binary
author
Jens Muecke
<jens@nons.de>
Sun, 24 Aug 2008 17:28:09 +0000
(19:28 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 31 Aug 2008 10:49:07 +0000
(12:49 +0200)
Makefile
patch
|
blob
|
history
Makefile.inc
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 1016facbfd6fdf62d001626b767337ff536272db..3e1d7ac74f3175a69e845454bbbae6737d61319a 100644
(file)
--- 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 2578c723220bab68c0e30bc74932f39f5a7e88ec..44c6aa55b1260fe11d9bcbeeb449b6774c42f931 100644
(file)
--- 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