[csw-devel] SF.net SVN: gar:[4305] csw/mgar/pkg/docbook-style-xsl/trunk/Makefile

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Tue Apr 14 17:01:16 CEST 2009


Revision: 4305
          http://gar.svn.sourceforge.net/gar/?rev=4305&view=rev
Author:   bdwalton
Date:     2009-04-14 15:01:13 +0000 (Tue, 14 Apr 2009)

Log Message:
-----------
use post-extract-modulated to correct directory name instead of modifying WORKSRC (cleaner for other things)

Modified Paths:
--------------
    csw/mgar/pkg/docbook-style-xsl/trunk/Makefile

Modified: csw/mgar/pkg/docbook-style-xsl/trunk/Makefile
===================================================================
--- csw/mgar/pkg/docbook-style-xsl/trunk/Makefile	2009-04-14 15:00:11 UTC (rev 4304)
+++ csw/mgar/pkg/docbook-style-xsl/trunk/Makefile	2009-04-14 15:01:13 UTC (rev 4305)
@@ -51,11 +51,16 @@
 
 INSTALL_ARGS = DESTDIR=$(DESTDIR)
 
-#to make the package extraction happy...(we don't use the - separator)
-WORKSRC = $(WORKDIR)/docbook-xsl-$(GARVERSION)
-
 include gar/category.mk
 
+post-extract-modulated: WRONGDIR=docbook-xsl-$(GARVERSION)
+post-extract-modulated:
+	@( cd $(WORKDIR); \
+		if test -d $(WRONGDIR); then \
+			mv $(WRONGDIR) $(DISTNAME); \
+		fi; )
+	@$(MAKECOOKIE)
+
 install-%/Makefile.csw:
 	@echo " ==> Running make install in $*"
 	@$(INSTALL_ENV) $(MAKE) -f Makefile.csw DESTDIR=$(DESTDIR) $(foreach TTT,$(INSTALL_OVERRIDE_DIRS),$(TTT)="$(DESTDIR)$($(TTT))") -C $* $(INSTALL_ARGS) install


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