summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/docs/Makefile28
1 files changed, 15 insertions, 13 deletions
diff --git a/www/docs/Makefile b/www/docs/Makefile
index dc91c41cc5..e78300d0ea 100644
--- a/www/docs/Makefile
+++ b/www/docs/Makefile
@@ -3,7 +3,9 @@ ACTION=@echo preprocessing $@; rm -f $@; $(HOME)/bin/fcpp -WWW -I.. -Uunix -H -C
3 3
4SRC := $(wildcard *.t) 4SRC := $(wildcard *.t)
5OBJS := $(SRC:%.t=%.html) 5OBJS := $(SRC:%.t=%.html)
6TXT2PLAIN = ../txt2plain.pl 6
7FAQ2HTML = ../faq2html.pl
8TXT2HTML = ../txt2html.pl
7 9
8# This is correct. It does point to ../../docs but we need a different 10# This is correct. It does point to ../../docs but we need a different
9# name so that the directories don't collide. 11# name so that the directories don't collide.
@@ -11,28 +13,28 @@ DOCS = ../docs_
11 13
12all: $(OBJS) 14all: $(OBJS)
13 15
14faq.raw: $(DOCS)/FAQ $(TXT2PLAIN) 16faq.raw: $(DOCS)/FAQ $(FAQ2HTML)
15 $(TXT2PLAIN) < $< > $@ 17 $(FAQ2HTML) < $< > $@
16 18
17faq.html: faq.t faq.raw $(TXT2PLAIN) 19faq.html: faq.t faq.raw $(FAQ2HTML)
18 $(ACTION) $< 20 $(ACTION) $<
19 21
20battery-faq.raw: $(DOCS)/BATTERY-FAQ $(TXT2PLAIN) 22battery-faq.raw: $(DOCS)/BATTERY-FAQ $(FAQ2HTML)
21 $(TXT2PLAIN) < $< > $@ 23 $(FAQ2HTML) < $< > $@
22 24
23battery-faq.html: battery-faq.t battery-faq.raw $(TXT2PLAIN) 25battery-faq.html: battery-faq.t battery-faq.raw $(FAQ2HTML)
24 $(ACTION) $< 26 $(ACTION) $<
25 27
26contributing.raw: $(DOCS)/CONTRIBUTING $(TXT2PLAIN) 28contributing.raw: $(DOCS)/CONTRIBUTING $(TXT2HTML)
27 $(TXT2PLAIN) < $< > $@ 29 $(TXT2HTML) < $< > $@
28 30
29contributing.html: contributing.t contributing.raw $(TXT2PLAIN) 31contributing.html: contributing.t contributing.raw $(TXT2HTML)
30 $(ACTION) $< 32 $(ACTION) $<
31 33
32custom_wps_format.raw: $(DOCS)/CUSTOM_WPS_FORMAT $(TXT2PLAIN) 34custom_wps_format.raw: $(DOCS)/CUSTOM_WPS_FORMAT $(TXT2HTML)
33 $(TXT2PLAIN) < $< > $@ 35 $(TXT2HTML) < $< > $@
34 36
35custom_wps_format.html: custom_wps_format.t custom_wps_format.raw $(TXT2PLAIN) 37custom_wps_format.html: custom_wps_format.t custom_wps_format.raw $(TXT2HTML)
36 $(ACTION) $< 38 $(ACTION) $<
37 39
38%.html : %.t 40%.html : %.t