Update of /cvsroot/fink/web/xml
In directory vz-cvs-3.sog:/tmp/cvs-serv19555

Modified Files:
        Makefile.common 
Log Message:
Have one Make rule per language instead of one monolithic rule for all

Thus now builds parallelize better, and if only one xml file changes
than only that one file needs to be reprocessed.


Index: Makefile.common
===================================================================
RCS file: /cvsroot/fink/web/xml/Makefile.common,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- Makefile.common     26 Oct 2011 12:50:14 -0000      1.24
+++ Makefile.common     27 Oct 2011 12:08:28 -0000      1.25
@@ -80,9 +80,17 @@
 
 # rendering to php-framed HTML for the website (multi-page)
 
-%.php.tmp: $(SOURCE) $(STYLESHEET_WEBSITE) $(basedir)/finkdoc.dtd
-       xmllint --noout --valid $(SOURCE)
-       $(foreach XMLFILE, $(SOURCE), xsltproc --stringparam PRINTFILE 
$(BASE_SOURCE) --stringparam DESTDIR $(DESTDIR)/ $(STYLESHEET_WEBSITE) 
$(XMLFILE); )
+define PHP_TEMPLATE
+%$(1).php.tmp: $(BASE_SOURCE)$(1).xml $(STYLESHEET_WEBSITE) 
$(basedir)/finkdoc.dtd
+       xmllint --noout --valid $$<
+       xsltproc --stringparam PRINTFILE $(BASE_SOURCE) --stringparam DESTDIR 
$(DESTDIR)/ $(STYLESHEET_WEBSITE) $$<
+endef
+
+ifdef LANGUAGES_AVAILABLE
+$(foreach LANG,$(LANGUAGES_AVAILABLE),$(eval $(call PHP_TEMPLATE,.$(LANG))))
+else
+$(eval $(call PHP_TEMPLATE,.$(LANG)))
+endif
 
 %.php: %.php.tmp $(PROCESS_WEBSITE)
        $(PROCESS_WEBSITE) <$< >$@


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to