After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 58352 - Add $(DESTDIR) to install-data-local targets
Add $(DESTDIR) to install-data-local targets
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: general
1.5.x
Other Linux
: Normal normal
: ---
Assigned To: Chema Celorio
Chema Celorio
Depends on:
Blocks:
 
 
Reported: 2001-07-31 18:52 UTC by Takayuki KUSANO
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Takayuki KUSANO 2001-07-31 18:52:31 UTC
Add $(DESTDIR) to install-data-local targets

Some Makefile.am and configure.in of 'gnome-control-center' and
'control-center-plus' define install-data-local targets for installing
some data, but they miss $(DESTDIR).

I wish $(DESTDIR) would be added to all these targets to ease
packaging tasks.

For example,

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@