Patch: installation directory for repexec files in Makefile



Hello,

The attached patch adds a "installrepexecdir" variable to src/Makefile and 
replaces all references to "repexecdir" in the installation targets with it. 
"installrepexecdir" is set to the same value of "repexecdir", so there is no 
functionality change in the default setup. 

I'm a developer for the GoboLinux distribution, and this helps our build 
system significantly. This change mirrors a similar functionality expressed in 
the rep-gtk Makefile ("installdir" variable).

The patch was written against sawfish 1.3. If necessary, I can adapt it submit 
it against the CVS build, but I believe it should apply without hassle.

Please consider applying, and thanks in advance.

-- 
Hisham Muhammad
http://www.gobolinux.org
diff -Naur sawfish-1.3-old/src/Makefile.in sawfish-1.3/src/Makefile.in
--- sawfish-1.3-old/src/Makefile.in	2003-12-09 04:03:18.000000000 -0200
+++ sawfish-1.3/src/Makefile.in	2003-12-09 04:19:18.000000000 -0200
@@ -21,6 +21,8 @@
 
 include ../Makedefs
 
+installrepexecdir=$(repexecdir)
+
 top_builddir=..
 top_srcdir= top_srcdir@
 srcdir= srcdir@
@@ -71,7 +73,7 @@
 	  $(rep_LIBTOOL) --mode=install $(INSTALL_PROGRAM) \
 	  $(notdir $(x)) $(DESTDIR)$(sawfishexecdir)/$(dir $(x));)
 	$(rep_INSTALL_ALIASES) -c . $(DESTDIR)$(sawfishexecdir)
-	$(rep_LIBTOOL) --mode=install $(INSTALL_PROGRAM) client.la $(DESTDIR)$(repexecdir)/sawfish/
+	$(rep_LIBTOOL) --mode=install $(INSTALL_PROGRAM) client.la $(DESTDIR)$(installrepexecdir)/sawfish/
 
 uninstall :
 	for p in sawfish; do \
@@ -82,10 +84,10 @@
 	for dl in $(DL_DSTS); do \
 	  $(rep_LIBTOOL) rm $(DESTDIR)${sawfishexecdir}/$$dl; \
 	done
-	$(rep_DL_UNINSTALL) $(DESTDIR)$(repexecdir)/sawfish/client.la
+	$(rep_DL_UNINSTALL) $(DESTDIR)$(installrepexecdir)/sawfish/client.la
 
 installdirs : mkinstalldirs
-	$(SHELL) $< $(DESTDIR)$(bindir) $(DESTDIR)$(repexecdir)/sawfish \
+	$(SHELL) $< $(DESTDIR)$(bindir) $(DESTDIR)$(installrepexecdir)/sawfish \
 	  $(foreach x,$(DL_DIRS),$(DESTDIR)$(sawfishexecdir)/$(x))
 
 .libexec :


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