You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by Massimo Manghi <ma...@unipr.it> on 2009/01/16 11:29:04 UTC

DESTDIR coded in Automake.am

DESTDIR has been coded into the install-data-local and
uninstall-local rules following the patch provided by 
kikusz@gmail.com and accordingly to Automake documentation
and directives


Index: Makefile.am
===================================================================
--- Makefile.am	(revision 730501)
+++ Makefile.am	(working copy)
@@ -16,11 +16,11 @@
 	$(SHELL) ./config.status --recheck
 
 install-data-local:
-	$(mkinstalldirs) $(RIVETLIB_DESTDIR)
-	cp -r rivet/* $(RIVETLIB_DESTDIR)
-	-( cd  $(RIVETLIB_DESTDIR) ; echo 'eval pkg_mkIndex -verbose [pwd] init.tcl
[glob [file join packages * *.tcl] [file join *[info sharedlibextension]]]' |
@TCLSH_PROG@ ; )
+	$(mkinstalldirs) $(DESTDIR)$(RIVETLIB_DESTDIR)
+	cp -r rivet/* $(DESTDIR)$(RIVETLIB_DESTDIR)
+	-( cd  $(DESTDIR)$(RIVETLIB_DESTDIR) ; echo 'eval pkg_mkIndex -verbose [pwd]
init.tcl [glob [file join packages * *.tcl] [file join *[info
sharedlibextension]]]' | @TCLSH_PROG@ ; )
 
 uninstall-local:
-	rm -fr $(RIVETLIB_DESTDIR)
+	rm -fr $(DESTDIR)$(RIVETLIB_DESTDIR)
 
 # 


-- Massimo


---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org