[csw-devel] SF.net SVN: gar:[15835] csw/mgar/pkg/mysql5/branches/mysql-5.0.x/Makefile

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Mon Oct 3 00:55:42 CEST 2011


Revision: 15835
          http://gar.svn.sourceforge.net/gar/?rev=15835&view=rev
Author:   wahwah
Date:     2011-10-02 22:55:42 +0000 (Sun, 02 Oct 2011)
Log Message:
-----------
pkg/mysql5/branches/mysql-5.0.x: moving the macro expansion to a -modulated target

Modified Paths:
--------------
    csw/mgar/pkg/mysql5/branches/mysql-5.0.x/Makefile

Modified: csw/mgar/pkg/mysql5/branches/mysql-5.0.x/Makefile
===================================================================
--- csw/mgar/pkg/mysql5/branches/mysql-5.0.x/Makefile	2011-10-02 22:42:20 UTC (rev 15834)
+++ csw/mgar/pkg/mysql5/branches/mysql-5.0.x/Makefile	2011-10-02 22:55:42 UTC (rev 15835)
@@ -278,6 +278,16 @@
 	cd $(WORKSRC) && autoreconf --force --install --symlink
 	@$(MAKECOOKIE)
 
+post-configure-modulated:
+	gsed \
+		-e 's+ at prefix@+$(prefix)+' \
+		-e 's+ at varstatedir@+$(varstatedir)+' \
+		-e 's+ at sysconfdir@+$(sysconfdir)+' \
+		-e 's+ at bindir@+$(bindir)+' \
+		< $(WORKDIR)/csw$(NAME).tpl \
+		> $(WORKDIR)/csw$(NAME)
+	@$(MAKECOOKIE)
+
 post-install-modulated:
 	(cd $(DESTDIR)$(libdir); gmv -v mysql/* .)
 	(cd $(DESTDIR)$(libdir); grmdir -v mysql)
@@ -292,13 +302,6 @@
 	gln -sf ../../../$(NAME)/share/$(NAME)/doc/README.CSW \
 		$(PKGROOT)/opt/csw/share/$(NAME)/doc/README.CSW
 	ginstall -m 755 -d $(PKGROOT)$(sysconfdir)/init.d
-	gsed \
-		-e 's+ at prefix@+$(prefix)+' \
-		-e 's+ at varstatedir@+$(varstatedir)+' \
-		-e 's+ at sysconfdir@+$(sysconfdir)+' \
-		-e 's+ at bindir@+$(bindir)+' \
-		< $(WORKDIR)/csw$(NAME).tpl \
-		> $(WORKDIR)/csw$(NAME)
 	ginstall -m 755 $(WORKDIR)/csw$(NAME) $(PKGROOT)$(sysconfdir)/init.d
 	ginstall -m 755 $(FILEDIR)/quick_start-csw $(PKGROOT)$(datadir)/mysql
 	ginstall -m 755 -d $(PKGROOT)$(global_sysconfdir)/pkg/CSW$(NAME)

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list