# HG changeset patch # User lumag # Date 1049050103 0 # Node ID 56be5a7b02a264b8779ecdabdc155650532eac3b # Parent c90dda76143bf0203023ac7bd990dde84db09946 Minor improvement: don't create empty dirs. diff -r c90dda76143b -r 56be5a7b02a2 DOCS/xml/Makefile --- a/DOCS/xml/Makefile Sun Mar 30 18:32:54 2003 +0000 +++ b/DOCS/xml/Makefile Sun Mar 30 18:48:23 2003 +0000 @@ -33,6 +33,9 @@ # List of subdirectories to be processed. SUBDIRS = en +# Here all generated html's go +HTML_TOP = ../HTML + #####[ End of configuration ]########################################### export CHUNK_XSL SGML_CATALOG_FILES XMLLINT XSLTPROC @@ -53,11 +56,11 @@ .PHONY: build-html build-html: - test -d HTML || mkdir HTML + test -d $(HTML_TOP) || mkdir $(HTML_TOP) for d in $(SUBDIRS); do\ test -f $$d/Makefile &&\ - (test -d HTML/$$d || mkdir HTML/$$d) &&\ - if $(MAKE) HTMLDIR=../../HTML/$$d -C $$d; then :; else exit 1; fi;\ + (test -d $(HTML_TOP)/$$d || mkdir $(HTML_TOP)/$$d) &&\ + if $(MAKE) HTMLDIR=../$(HTML_TOP)/$$d -C $$d; then :; else exit 1; fi;\ done .PHONY: test @@ -69,7 +72,7 @@ .PHONY: clean-html clean-html: - -rm -rf ../HTML + -rm -rf $(HTML_TOP) .PHONY: distclean distclean: clean-html