r5294 jmb - /trunk/libcss/build/Makefile.common

netsurf at semichrome.net netsurf at semichrome.net
Tue Sep 9 10:05:19 BST 2008


Author: jmb
Date: Tue Sep  9 04:05:19 2008
New Revision: 5294

URL: http://source.netsurf-browser.org?rev=5294&view=rev
Log:
Make install/uninstall consider DESTDIR

Modified:
    trunk/libcss/build/Makefile.common

Modified: trunk/libcss/build/Makefile.common
URL: http://source.netsurf-browser.org/trunk/libcss/build/Makefile.common?rev=5294&r1=5293&r2=5294&view=diff
==============================================================================
--- trunk/libcss/build/Makefile.common (original)
+++ trunk/libcss/build/Makefile.common Tue Sep  9 04:05:19 2008
@@ -90,17 +90,17 @@
 	@$(MAKE) install PREFIX="$(TOP)/dist"
 
 install: release
-	@$(MKDIR) $(MKDIRFLAGS) -p $(PREFIX)/lib/pkgconfig
-	@$(MKDIR) $(MKDIRFLAGS) -p $(PREFIX)/include/libcss
+	@$(MKDIR) $(MKDIRFLAGS) -p $(DESTDIR)$(PREFIX)/lib/pkgconfig
+	@$(MKDIR) $(MKDIRFLAGS) -p $(DESTDIR)$(PREFIX)/include/libcss
 	@$(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/libcss $(filter %.h, $(wildcard include/libcss/*))
+	@$(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/libcss $(filter %.h, $(wildcard include/libcss/*))
 
 uninstall:
-	@$(RM) $(RMFLAGS) $(PREFIX)/lib/$(COMPONENT).a
-	@$(RM) $(RMFLAGS) $(PREFIX)/lib/pkgconfig/$(COMPONENT).pc
-	@$(RM) $(RMFLAGS) -r $(PREFIX)/include/libcss
+	@$(RM) $(RMFLAGS) $(DESTDIR)$(PREFIX)/lib/$(COMPONENT).a
+	@$(RM) $(RMFLAGS) $(DESTDIR)$(PREFIX)/lib/pkgconfig/$(COMPONENT).pc
+	@$(RM) $(RMFLAGS) -r $(DESTDIR)$(PREFIX)/include/libcss
 
 $(RELEASEDIR)/deps/created:
 	@$(MKDIR) $(MKDIRFLAGS) $(RELEASEDIR)/deps




More information about the netsurf-commits mailing list