diff --git a/make-includes/build_document_rules.make b/make-includes/build_document_rules.make index 541bfcf..119ab7d 100755 --- a/make-includes/build_document_rules.make +++ b/make-includes/build_document_rules.make @@ -123,7 +123,7 @@ # $(PAPER_ROOT)/$(SECTION), because some of the include directories may be # in relatively arbitrary locations. # -CONTENT_SRC:=$(shell perl -ne 'print "$(PAPER_ROOT)/$(notdir $(SECTION))/$$1\n" if /<\@INC\[([^]]+)\]@>/;' $(SOURCE_XML)) +CONTENT_SRC:=$(shell perl -ne 'print "$(PAPER_ROOT)/$$1\n" if /<\@INC\[([^]]+)\]@>/;' $(SOURCE_XML)) ################################################################################ @@ -271,7 +271,7 @@ # $(DERIVED_XML): $(SOURCE_XML) @announce "Generating $@" - @perl -ne 'if (/^(.*)<\@INC\[([^]]+)\]@>(.*)$$/) { print "$$1\n" . `cat $(PAPER_ROOT)/$(SECTION)/$$2` . "\n$$3\n"; } else { print; }' $< > $@ + @perl -ne 'if (/^(.*)<\@INC\[([^]]+)\]@>(.*)$$/) { print "$$1\n" . `cat $(PAPER_ROOT)/$$2` . "\n$$3\n"; } else { print; }' $< > $@ ################################################################################