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
Logged In: NO
There was a problem with file submission, so here is the
## Uses `static pattern rules'. Requires GNU make.
.PHONY: all remove-old xsl-files clean
HTML2XHTML := html2xhtml.xsl
# stylesheets to be "generated"
GENERATED_STYLESHEETS := profile-chunk.xsl
# stylesheets to be "copied"
STYLESHEETS := $(filter-out $(GENERATED_STYLESHEETS), \
# stylesheets to be removed
OLD_STYLESHEETS := $(filter-out $(STYLESHEETS), $(wildcard
OLD_STYLESHEETS := $(filter-out $(GENERATED_STYLESHEETS),
OLD_STYLESHEETS := $(filter-out $(HTML2XHTML),
all: xsl-files $(GENERATED_STYLESHEETS)
xsl-files: remove-old $(STYLESHEETS)
$(STYLESHEETS) : % : ../html/%
$(XSLT) $< $(HTML2XHTML) $@
$(GENERATED_STYLESHEETS) : profile-%.xsl : %.xsl
$(XSLT) $+ $@
@rm -f $(OLD_STYLESHEETS)
@rm -f $(STYLESHEETS) $(GENERATED_STYLESHEETS)
Logged In: YES
xhtml build is working already as expected;
not compelling reason to change it at this point.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.