]> rtime.felk.cvut.cz Git - edu/xsl.git/commitdiff
Path of generated html is conditionally printed
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 16 Mar 2009 19:15:04 +0000 (20:15 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 16 Mar 2009 19:15:04 +0000 (20:15 +0100)
I use if in ma XXE macro, which calls make and opens the resulting tml in a
browser.

Makefile

index 85987c03c33142d64f8160ca501235181ff2a44f..4fec7fd930ece4a9b9b52f9cad879754d351fd8d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -59,6 +59,9 @@ endif
        $(Q)mkdir -p $(dir $@)
        $(Q)echo "  XSLTPROC $(RELATIVEDIR:%=%/)$(notdir $@)"
        $(Q)xsltproc --stringparam www.root "$(WWW_ROOT)" $(XSLTPROCFLAGS) $(BASEDIR)/xsl/course.xsl $< > "$@"
+ifdef SHOW_HTML_PATH
+       $(Q)echo "$@"           # Used by XXE macro to display the compiled page
+endif
 
 
 links.mk: $(XMLS:%.xml=%.links)