diff options
-rw-r--r-- | www/docs/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/www/docs/Makefile b/www/docs/Makefile index 0c3a99f74c..2f0ba7c0b4 100644 --- a/www/docs/Makefile +++ b/www/docs/Makefile | |||
@@ -1,18 +1,23 @@ | |||
1 | ACTION=@echo preprocessing $@; rm -f $@; $(HOME)/bin/fcpp -WWW -I.. -Uunix -H -C -V -P -LL >$@ | 1 | ACTION=@echo preprocessing $@; rm -f $@; $(HOME)/bin/fcpp -WWW -I.. -Uunix -H -C -V -P -LL >$@ |
2 | 2 | ||
3 | |||
3 | SRC := $(wildcard *.t) | 4 | SRC := $(wildcard *.t) |
4 | OBJS := $(SRC:%.t=%.html) | 5 | OBJS := $(SRC:%.t=%.html) |
5 | TXT2PLAIN = ../txt2plain.pl | 6 | TXT2PLAIN = ../txt2plain.pl |
6 | 7 | ||
8 | # This is correct. It does point to ../../docs but we need a different | ||
9 | # name so that the directories don't collide. | ||
10 | DOCS = ../docs_ | ||
11 | |||
7 | all: $(OBJS) | 12 | all: $(OBJS) |
8 | 13 | ||
9 | faq.html: faq.t faq.raw $(TXT2PLAIN) | 14 | faq.html: faq.t faq.raw $(TXT2PLAIN) |
10 | $(ACTION) $< | 15 | $(ACTION) $< |
11 | 16 | ||
12 | faq.raw: FAQ $(TXT2PLAIN) | 17 | faq.raw: $(DOCS)/FAQ $(TXT2PLAIN) |
13 | $(TXT2PLAIN) < $< > $@ | 18 | $(TXT2PLAIN) < $< > $@ |
14 | 19 | ||
15 | battery.raw: BATTERY $(TXT2PLAIN) | 20 | battery.raw: $(DOCS)/BATTERY $(TXT2PLAIN) |
16 | $(TXT2PLAIN) < $< > $@ | 21 | $(TXT2PLAIN) < $< > $@ |
17 | 22 | ||
18 | battery.html: battery.t battery.raw $(TXT2PLAIN) | 23 | battery.html: battery.t battery.raw $(TXT2PLAIN) |