equal
deleted
inserted
replaced
3 # No final slash here! |
3 # No final slash here! |
4 # It will mess up rsync behavior. |
4 # It will mess up rsync behavior. |
5 TOP=`pwd` |
5 TOP=`pwd` |
6 SRC_DIR=`pwd` |
6 SRC_DIR=`pwd` |
7 INSTALL_DIR=$(TOP)/install |
7 INSTALL_DIR=$(TOP)/install |
8 FR_ARTICLES=couleurs jjch credo systemes resolution |
8 FR_ARTICLES=couleurs jjch credo systemes resolution mecanique |
9 EN_ARTICLES=colors |
9 EN_ARTICLES=colors |
10 UNPUBLISHED=dri-aido jdrdef jdrl |
10 UNPUBLISHED=dri-aido jdrdef jdrl |
11 BOOKS=jeuderologie rpgtheory |
11 BOOKS=jeuderologie rpgtheory |
12 TARGETS=$(BOOKS) $(FR_ARTICLES) $(EN_ARTICLES) $(UNPUBLISHED) |
12 TARGETS=$(BOOKS) $(FR_ARTICLES) $(EN_ARTICLES) $(UNPUBLISHED) |
13 HTML_FILES=index.en.html index.fr.html |
13 HTML_FILES=index.en.html index.fr.html |
57 rm -rf *~ *.fo *.aux *.log *.out |
57 rm -rf *~ *.fo *.aux *.log *.out |
58 |
58 |
59 purge: |
59 purge: |
60 rm -rf $(TARGETS) |
60 rm -rf $(TARGETS) |
61 |
61 |
62 $(TARGETS): |
62 $(TARGETS): |
63 $(MAKE) -f $(SRC_DIR)/Makefile $@.pdf $@.txt $@/index.html $@.html |
63 $(MAKE) -f $(SRC_DIR)/Makefile $@.pdf $@.txt $@/index.html $@.html |
64 |
64 |
65 %.fo: %.xml $(SRC_DIR)/print.xsl |
65 %.fo: %.xml $(SRC_DIR)/print.xsl $(SRC_DIR)/common.xsl |
66 xsltproc --xinclude -o $@ $(SRC_DIR)/print.xsl $< |
66 xsltproc --xinclude -o $@ $(SRC_DIR)/print.xsl $< |
67 |
67 |
68 TEX_OPTIONS=-interaction=errorstopmode -file-line-error-style |
68 TEX_OPTIONS=-interaction=errorstopmode -file-line-error-style |
69 TEXERRORLEVEL=2 |
69 TEXERRORLEVEL=2 |
70 MAX_TEX_RECURSION=4 |
70 MAX_TEX_RECURSION=4 |
83 fop $< $@ |
83 fop $< $@ |
84 |
84 |
85 %.txt: %.html |
85 %.txt: %.html |
86 w3m -dump $< > $@ |
86 w3m -dump $< > $@ |
87 |
87 |
88 %/index.html: %.xml $(SRC_DIR)/chunk.xsl |
88 %/index.html: %.xml $(SRC_DIR)/chunk.xsl $(SRC_DIR)/common.xsl |
89 rm -rf $(dir $@) |
89 rm -rf $(dir $@) |
90 xsltproc --xinclude -o $(dir $@) $(SRC_DIR)/chunk.xsl $< |
90 xsltproc --xinclude -o $(dir $@) $(SRC_DIR)/chunk.xsl $< |
91 |
91 |
92 %.html: %.xml $(SRC_DIR)/html.xsl |
92 %.html: %.xml $(SRC_DIR)/html.xsl $(SRC_DIR)/common.xsl |
93 xsltproc --xinclude -o $@ $(SRC_DIR)/html.xsl $< |
93 xsltproc --xinclude -o $@ $(SRC_DIR)/html.xsl $< |
94 |
94 |
95 .PHONY: $(TARGETS) $(addsuffix -do,$(TARGETS)) |
95 .PHONY: $(TARGETS) $(addsuffix -do,$(TARGETS)) |
96 .PHONY: update clean all install validate |
96 .PHONY: update clean all install validate |