blob: 266663c85d5ef6ea1641f53a9f87a8f76b110af3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
ACTION=@echo preprocessing $@; rm -f $@; $(HOME)/bin/fcpp -WWW -I.. -Uunix -H -C -V -P -LL >$@
SRC := $(wildcard *.t)
OBJS := $(SRC:%.t=%.html)
FAQ2HTML = ../faq2html.pl
TXT2HTML = ../txt2html.pl
# This is correct. It does point to ../../docs but we need a different
# name so that the directories don't collide.
DOCS = ../docs_
all: $(OBJS)
faq.raw: $(DOCS)/FAQ $(FAQ2HTML)
$(FAQ2HTML) < $< > $@
faq.html: faq.t faq.raw $(FAQ2HTML)
$(ACTION) $<
battery-faq.raw: $(DOCS)/BATTERY-FAQ $(FAQ2HTML)
$(FAQ2HTML) < $< > $@
battery-faq.html: battery-faq.t battery-faq.raw $(FAQ2HTML)
$(ACTION) $<
contributing.raw: $(DOCS)/CONTRIBUTING $(TXT2HTML)
$(TXT2HTML) < $< > $@
contributing.html: contributing.t contributing.raw $(TXT2HTML)
$(ACTION) $<
custom_wps_format.raw: $(DOCS)/CUSTOM_WPS_FORMAT $(TXT2HTML)
$(TXT2HTML) < $< > $@
custom_wps_format.html: custom_wps_format.t custom_wps_format.raw $(TXT2HTML)
$(ACTION) $<
how_to_compile.raw: $(DOCS)/README $(TXT2HTML)
$(TXT2HTML) < $< > $@
how_to_compile.html: how_to_compile.t how_to_compile.raw $(TXT2HTML)
$(ACTION) $<
%.html : %.t
$(ACTION) $<
|