From: SourceForge.net <no...@so...> - 2006-04-27 08:07:16
|
Patches item #544056, was opened at 2002-04-15 19:37 Message generated for change (Comment added) made by xmldoc You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373749&aid=544056&group_id=21935 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: XSL Group: None >Status: Closed >Resolution: Wont Fix Priority: 3 Submitted By: Nobody/Anonymous (nobody) >Assigned to: Michael(tm) Smith (xmldoc) Summary: automating xsl/xhtml/Makefile Initial Comment: xsl/xhtml/Makefile can be automated using "static pattern rules" which is a GNU Make feature. If it is clear that GNU Make shall be used the file appended can be used as a replacement for xsl/xhtml/Makefile. ---------------------------------------------------------------------- >Comment By: Michael(tm) Smith (xmldoc) Date: 2006-04-27 17:07 Message: Logged In: YES user_id=118135 xhtml build is working already as expected; not compelling reason to change it at this point. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-04-15 20:05 Message: Logged In: NO There was a problem with file submission, so here is the file: ## ## Uses `static pattern rules'. Requires GNU make. ## include ../../cvstools/Makefile.incl .PHONY: all remove-old xsl-files clean HTML2XHTML := html2xhtml.xsl # stylesheets to be "generated" GENERATED_STYLESHEETS := profile-chunk.xsl profile-docbook.xsl # stylesheets to be "copied" STYLESHEETS := $(filter-out $(GENERATED_STYLESHEETS), \ $(notdir $(wildcard ../html/*.xsl))) # stylesheets to be removed OLD_STYLESHEETS := $(filter-out $(STYLESHEETS), $(wildcard *.xsl)) OLD_STYLESHEETS := $(filter-out $(GENERATED_STYLESHEETS), $(OLD_STYLESHEETS)) OLD_STYLESHEETS := $(filter-out $(HTML2XHTML), $(OLD_STYLESHEETS)) all: xsl-files $(GENERATED_STYLESHEETS) xsl-files: remove-old $(STYLESHEETS) $(STYLESHEETS) : % : ../html/% $(XSLT) $< $(HTML2XHTML) $@ $(GENERATED_STYLESHEETS) : profile-%.xsl : %.xsl ../profiling/xsl2profile.xsl $(XSLT) $+ $@ remove-old: @rm -f $(OLD_STYLESHEETS) clean: remove-old @rm -f $(STYLESHEETS) $(GENERATED_STYLESHEETS) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373749&aid=544056&group_id=21935 |