summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-09-09 09:02:53 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-09-09 09:02:53 +0000
commitef185b3b04eeb4bf94f6be6bfe57f0daef0faca1 (patch)
treebed49a279286d23492061534e593325b58d85af1 /build
parent8b022adead625f3315227b063af83b55f195653a (diff)
downloadlibparserutils-ef185b3b04eeb4bf94f6be6bfe57f0daef0faca1.tar.gz
libparserutils-ef185b3b04eeb4bf94f6be6bfe57f0daef0faca1.tar.bz2
Make install/uninstall consider DESTDIR
svn path=/trunk/libparserutils/; revision=5292
Diffstat (limited to 'build')
-rw-r--r--build/Makefile.common28
1 files changed, 14 insertions, 14 deletions
diff --git a/build/Makefile.common b/build/Makefile.common
index c0f492b..b5e9525 100644
--- a/build/Makefile.common
+++ b/build/Makefile.common
@@ -93,24 +93,24 @@ export:
@$(MAKE) install PREFIX="$(TOP)/dist"
install: release
- @$(MKDIR) $(MKDIRFLAGS) -p $(PREFIX)/lib/pkgconfig
- @$(MKDIR) $(MKDIRFLAGS) -p $(PREFIX)/include/parserutils
- @$(MKDIR) $(MKDIRFLAGS) -p $(PREFIX)/include/parserutils/charset
- @$(MKDIR) $(MKDIRFLAGS) -p $(PREFIX)/include/parserutils/input
- @$(MKDIR) $(MKDIRFLAGS) -p $(PREFIX)/include/parserutils/utils
+ @$(MKDIR) $(MKDIRFLAGS) -p $(DESTDIR)$(PREFIX)/lib/pkgconfig
+ @$(MKDIR) $(MKDIRFLAGS) -p $(DESTDIR)$(PREFIX)/include/parserutils
+ @$(MKDIR) $(MKDIRFLAGS) -p $(DESTDIR)$(PREFIX)/include/parserutils/charset
+ @$(MKDIR) $(MKDIRFLAGS) -p $(DESTDIR)$(PREFIX)/include/parserutils/input
+ @$(MKDIR) $(MKDIRFLAGS) -p $(DESTDIR)$(PREFIX)/include/parserutils/utils
@$(SED) -e 's#PREFIX#$(PREFIX)#' $(COMPONENT).pc.in >$(COMPONENT).pc
- @$(INSTALL) --mode=644 -t $(PREFIX)/lib $(COMPONENT).a
- @$(INSTALL) --mode=644 -t $(PREFIX)/lib/pkgconfig $(COMPONENT).pc
- @$(INSTALL) --mode=644 -t $(PREFIX)/include/parserutils $(filter %.h, $(wildcard include/parserutils/*))
- @$(INSTALL) --mode=644 -t $(PREFIX)/include/parserutils/charset $(filter %.h, $(wildcard include/parserutils/charset/*))
- @$(INSTALL) --mode=644 -t $(PREFIX)/include/parserutils/input $(filter %.h, $(wildcard include/parserutils/input/*))
- @$(INSTALL) --mode=644 -t $(PREFIX)/include/parserutils/utils $(filter %.h, $(wildcard include/parserutils/utils/*))
+ @$(INSTALL) --mode=644 -t $(DESTDIR)$(PREFIX)/lib $(COMPONENT).a
+ @$(INSTALL) --mode=644 -t $(DESTDIR)$(PREFIX)/lib/pkgconfig $(COMPONENT).pc
+ @$(INSTALL) --mode=644 -t $(DESTDIR)$(PREFIX)/include/parserutils $(filter %.h, $(wildcard include/parserutils/*))
+ @$(INSTALL) --mode=644 -t $(DESTDIR)$(PREFIX)/include/parserutils/charset $(filter %.h, $(wildcard include/parserutils/charset/*))
+ @$(INSTALL) --mode=644 -t $(DESTDIR)$(PREFIX)/include/parserutils/input $(filter %.h, $(wildcard include/parserutils/input/*))
+ @$(INSTALL) --mode=644 -t $(DESTDIR)$(PREFIX)/include/parserutils/utils $(filter %.h, $(wildcard include/parserutils/utils/*))
uninstall:
- @$(RM) $(RMFLAGS) $(PREFIX)/lib/$(COMPONENT).a
- @$(RM) $(RMFLAGS) $(PREFIX)/lib/pkgconfig/$(COMPONENT).pc
- @$(RM) $(RMFLAGS) -r $(PREFIX)/include/parserutils
+ @$(RM) $(RMFLAGS) $(DESTDIR)$(PREFIX)/lib/$(COMPONENT).a
+ @$(RM) $(RMFLAGS) $(DESTDIR)$(PREFIX)/lib/pkgconfig/$(COMPONENT).pc
+ @$(RM) $(RMFLAGS) -r $(DESTDIR)$(PREFIX)/include/parserutils
$(RELEASEDIR)/deps/created:
@$(MKDIR) $(MKDIRFLAGS) $(RELEASEDIR)/deps