Could you add $(DESTDIR) to install-data-local targets?



To ease packaging tasks, could you add $(DESTDIR) to
install-data-local targets in Makefile.am and configure.in of
gnome-control-center and control-center-plus like this?

With this modifications, we can exec 'make install DESTDIR=/some/where' to
build binary packages.

diff -ur gnome-control-center.orig/capplets/background/Makefile.am gnome-control-center/capplets/background/Makefile.am
--- gnome-control-center.orig/capplets/background/Makefile.am	Tue Jul 31 00:27:26 2001
+++ gnome-control-center/capplets/background/Makefile.am	Wed Aug  1 00:24:55 2001
@@ -47,8 +47,8 @@
 	sed -e "s# DESKTOP_EXEC_LINE@#$(DESKTOP_EXEC_LINE)#" -e "s#Icon=.*#Icon=$(GNOMECC_ICONS_DIR)/${cappletname}-capplet.png#" < $< > ${cappletname}.desktop.in
 
 install-data-local:
-	$(mkinstalldirs) $(datadir)/control-center/capplets/$(cappletgroup)
-	$(INSTALL_DATA) $(desktop) $(datadir)/control-center/capplets/$(cappletgroup)$(desktop)
+	$(mkinstalldirs) $(DESTDIR)$(datadir)/control-center/capplets/$(cappletgroup)
+	$(INSTALL_DATA) $(desktop) $(DESTDIR)$(datadir)/control-center/capplets/$(cappletgroup)$(desktop)
 
 install-data-am: install-data-local
 #### ###GNOMECC_CAPPLETS_DESKTOP_IN_RULE@
diff -ur gnome-control-center.orig/capplets/default-applications/Makefile.am gnome-control-center/capplets/default-applications/Makefile.am

  KUSANO Takayuki <URL:http://www.asahi-net.or.jp/~AE5T-KSN/>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]