export BASEDIR
# RELATIVEDIR: relative path from BASEDIR to the current directory
-RELATIVEDIR=$(patsubst /%,%,$(patsubst $(BASEDIR)%,%,$(shell pwd)))
+RELATIVEDIR=$(patsubst /%,%,$(patsubst $(BASEDIR)%,%,$(shell pwd -L)))
# BACK_TO_BASE: relative path from the current directory to BASEDIR
BACK_TO_BASE:=$(shell echo $(RELATIVEDIR)|sed -e 's/[^/]\+/../g')
$(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)