Anonymous avatar Anonymous committed df1786c

r5895@telaviv1: shlomi | 2008-07-22 07:55:36 +0300
Extracted more variables to the makefile.

Comments (0)

Files changed (1)

 DOCBOOK_ALL_IN_ONE_XHTML_DIR = lib/docbook/essays
 
 SCREENPLAY_XML_BASE_DIR = lib/screenplay-xml
+SCREENPLAY_XML_XML_DIR = $(SCREENPLAY_XML_BASE_DIR)/xml
+SCREENPLAY_XML_TXT_DIR = $(SCREENPLAY_XML_BASE_DIR)/txt
 
 DOCBOOK_TARGETS = $(patsubst %,$(DOCBOOK_RENDERED_DIR)/%.html,$(DOCBOOK_DOCS))
 DOCBOOK_XMLS = $(patsubst %,$(DOCBOOK_XML_DIR)/%.xml,$(DOCBOOK_DOCS))
 
-SCREENPLAY_XMLS = $(patsubst %,$(SCREENPLAY_XML_BASE_DIR)/xml/%.xml,$(SCREENPLAY_DOCS))
+SCREENPLAY_XMLS = $(patsubst %,$(SCREENPLAY_XML_XML_DIR)/%.xml,$(SCREENPLAY_DOCS))
 SCREENPLAY_HTMLS = $(patsubst %,$(SCREENPLAY_XML_BASE_DIR)/html/%.html,$(SCREENPLAY_DOCS))
 
 DOCBOOK_FOS = $(patsubst %,$(DOCBOOK_FO_DIR)/%.fo,$(DOCBOOK_DOCS))
 
 SCREENPLAY_RENDERED_HTMLS = $(patsubst %,$(SCREENPLAY_XML_BASE_DIR)/rendered-html/%.html,$(SCREENPLAY_DOCS))
 
-$(DOCBOOK_XML_DIR)/%.xml: $(SCREENPLAY_XML_BASE_DIR)/xml/%.xml
+$(DOCBOOK_XML_DIR)/%.xml: $(SCREENPLAY_XML_XML_DIR)/%.xml
 	perl -MXML::Grammar::Screenplay::App::ToDocBook -e 'run()' -- \
 	-o $@ $<
 
-$(SCREENPLAY_XML_BASE_DIR)/html/%.html: $(SCREENPLAY_XML_BASE_DIR)/xml/%.xml
+$(SCREENPLAY_XML_BASE_DIR)/html/%.html: $(SCREENPLAY_XML_XML_DIR)/%.xml
 	perl -MXML::Grammar::Screenplay::App::ToHTML -e 'run()' -- \
 	-o $@ $<
 
 $(SCREENPLAY_XML_BASE_DIR)/rendered-html/%.html: $(SCREENPLAY_XML_BASE_DIR)/html/%.html
 	./bin/extract-screenplay-xml-html.pl -o $@ $<
 
-$(SCREENPLAY_XML_BASE_DIR)/xml/%.xml: $(SCREENPLAY_XML_BASE_DIR)/txt/%.txt
+$(SCREENPLAY_XML_XML_DIR)/%.xml: $(SCREENPLAY_XML_TXT_DIR)/%.txt
 	perl -MXML::Grammar::Screenplay::App::FromProto -e 'run()' -- \
 	-o $@ $<
 
 	$(DOCMAKE) --stringparam "docmake.output.format=xhtml" -x $(XHTML_ONE_CHUNK_XSLT_SS) -o $(patsubst $(DOCBOOK_ALL_IN_ONE_XHTML_DIR)/%/all-in-one.html,$(DOCBOOK_ALL_IN_ONE_XHTML_DIR)/%,$@) xhtml $<
 	mv $(patsubst %/all-in-one.html,%/index.html,$@) $@
 
-$(T2_DEST)/humour/TOWTF/TOW_Fountainhead_1.txt: $(SCREENPLAY_XML_BASE_DIR)/txt/TOW_Fountainhead_1.txt
+$(T2_DEST)/humour/TOWTF/TOW_Fountainhead_1.txt: $(SCREENPLAY_XML_TXT_DIR)/TOW_Fountainhead_1.txt
 	cp -f $< $@
 
-$(T2_DEST)/humour/TOWTF/TOW_Fountainhead_2.txt: $(SCREENPLAY_XML_BASE_DIR)/txt/TOW_Fountainhead_2.txt
+$(T2_DEST)/humour/TOWTF/TOW_Fountainhead_2.txt: $(SCREENPLAY_XML_TXT_DIR)/TOW_Fountainhead_2.txt
 	cp -f $< $@
 
-$(T2_DEST)/humour/humanity/Humanity-Movie.txt: $(SCREENPLAY_XML_BASE_DIR)/txt/Humanity-Movie.txt
+$(T2_DEST)/humour/humanity/Humanity-Movie.txt: $(SCREENPLAY_XML_TXT_DIR)/Humanity-Movie.txt
 	cp -f $< $@
 
-$(T2_DEST)/humour/Star-Trek/We-the-Living-Dead/star-trek--we-the-living-dead.txt: $(SCREENPLAY_XML_BASE_DIR)/txt/star-trek--we-the-living-dead.txt
+$(T2_DEST)/humour/Star-Trek/We-the-Living-Dead/star-trek--we-the-living-dead.txt: $(SCREENPLAY_XML_TXT_DIR)/star-trek--we-the-living-dead.txt
 	cp -f $< $@
 
 %.show:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.