[csw-devel] SF.net SVN: gar:[6878] csw/mgar/pkg/cswutils/trunk/Makefile

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sat Oct 17 16:43:44 CEST 2009


Revision: 6878
          http://gar.svn.sourceforge.net/gar/?rev=6878&view=rev
Author:   wahwah
Date:     2009-10-17 14:43:44 +0000 (Sat, 17 Oct 2009)

Log Message:
-----------
cswutils: Added dependency on CSWpython, DISTFILES are now created based on SVN_FILES

Modified Paths:
--------------
    csw/mgar/pkg/cswutils/trunk/Makefile

Modified: csw/mgar/pkg/cswutils/trunk/Makefile
===================================================================
--- csw/mgar/pkg/cswutils/trunk/Makefile	2009-10-17 14:35:43 UTC (rev 6877)
+++ csw/mgar/pkg/cswutils/trunk/Makefile	2009-10-17 14:43:44 UTC (rev 6878)
@@ -12,18 +12,18 @@
 SVN_REV = 90
 
 MASTER_SITES =
+SVN_FILES = submit_to_newpkgs.py compare_pkgs.py opencsw_lib.py
 DISTFILES = COPYING
 DISTFILES += checkpkg checkpkg.8
 DISTFILES += cpan2pkg
 DISTFILES += createpkg createpkg.8
 DISTFILES += stagepkg stagepkg.8
 DISTFILES += stagepkg stagepkg.8
-DISTFILES += compare_pkgs.py-r$(SVN_REV)
-DISTFILES += opencsw_lib.py-r$(SVN_REV)
-DISTFILES += submit_to_newpkgs.py-r$(SVN_REV)
+DISTFILES += $(foreach F,$(SVN_FILES),$(F)-r$(SVN_REV))
 
 REQUIRED_PKGS = CSWtextutils CSWfakeroot CSWperl
 REQUIRED_PKGS += CSWpmyaml CSWpmlibwww CSWpmhtmltree
+REQUIRED_PKGS += CSWpython
 
 WORKSRC = $(WORKDIR)
 
@@ -43,9 +43,8 @@
 
 include gar/category.mk
 
-SVN_FILES = submit_to_newpkgs compare_pkgs opencsw_lib
-
-$(foreach F,$(SVN_FILES),$(DOWNLOADDIR)/$(F).py-r$(SVN_REV)):
+# This target doesn't work when defined as $(DOWNLOADDIR)/%-r$(SVN_REV)
+$(foreach F,$(SVN_FILES),$(DOWNLOADDIR)/$(F)-r$(SVN_REV)):
 	svn export -r $(SVN_REV) $(SVNROOT)$(subst -r$(SVN_REV),,$(notdir $@))
 	mv $(subst -r$(SVN_REV),,$(notdir $@)) $@
 	@$(MAKECOOKIE)


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