comparison DOCS/xml/Makefile.inc @ 31076:783f8faee539

Put symlinks under revision control instead of generating them during make. This simplifies the build system and should have no practical disadvantage.
author diego
date Mon, 03 May 2010 23:00:58 +0000
parents 0dacb57a3d3e
children 7a2ec1d564ce
comparison
equal deleted inserted replaced
31075:a259f3d8694d 31076:783f8faee539
11 # This is the main target... 11 # This is the main target...
12 all: html-chunked html-single 12 all: html-chunked html-single
13 html-chunked: $(HTMLDIR)/index.html 13 html-chunked: $(HTMLDIR)/index.html
14 html-single: $(HTMLDIR)/MPlayer.html 14 html-single: $(HTMLDIR)/MPlayer.html
15 15
16 SYMLINKS_DEPS := $(filter-out $(wildcard *.xml),$(notdir $(wildcard ../en/*.xml))) 16 xmllint: main.xml
17
18 xmllint: main.xml $(SYMLINKS_DEPS)
19 ../xmllint.sh $< 17 ../xmllint.sh $<
20 18
21 $(HTMLDIR)/default.css: 19 $(HTMLDIR)/default.css:
22 cp -f ../default.css $(@D) 20 cp -f ../default.css $(@D)
23 21
24 $(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS) $(SYMLINKS_DEPS) xmllint $(HTMLDIR)/default.css 22 $(HTMLDIR)/index.html: main.xml $(CHUNK_XSL_DEPS) xmllint $(HTMLDIR)/default.css
25 ../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $< 23 ../xsltproc.sh $(HTMLDIR)/ $(HTML_CHUNK_XSL) $<
26 24
27 $(HTMLDIR)/MPlayer.html: main.xml $(SINGLE_XSL_DEPS) $(SYMLINKS_DEPS) xmllint $(HTMLDIR)/default.css 25 $(HTMLDIR)/MPlayer.html: main.xml $(SINGLE_XSL_DEPS) xmllint $(HTMLDIR)/default.css
28 ../xsltproc.sh $@ $(HTML_SINGLE_XSL) $< 26 ../xsltproc.sh $@ $(HTML_SINGLE_XSL) $<
29 27
30 ../html-chunk.xsl ../html-single.xsl main.xml: 28 ../html-chunk.xsl ../html-single.xsl main.xml:
31 cd .. && sh configure 29 cd .. && sh configure
32 30
33 $(SYMLINKS_DEPS):
34 ln -s ../en/$@ $@
35
36 .PHONY: all html-chunked html-single xmllint 31 .PHONY: all html-chunked html-single xmllint