Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | # $Date: 2002/07/27 05:13:10 $ |
2 | ||
3 | # Where doc scripts are located | |
4 | SCRIPT_DIR = ../_helper | |
5 | # Root of mhonarc source | |
6 | MHA_SRC_DIR = ../.. | |
7 | ||
8 | RCLIST = $(SCRIPT_DIR)/resource.lst | |
9 | VARLIST = $(SCRIPT_DIR)/rcvars.lst | |
10 | MKTMPLPL = $(SCRIPT_DIR)/mkrestmpl.pl | |
11 | ADDVARPL = $(SCRIPT_DIR)/addvartbls.pl | |
12 | ADDCTYPEPL = $(SCRIPT_DIR)/addctypetbl.pl | |
13 | ADDNAVPL = $(SCRIPT_DIR)/addrcnav.pl | |
14 | MHAEXTPL = $(MHA_SRC_DIR)/lib/mhmimetypes.pl | |
15 | ||
16 | .PHONY: _FORCE | |
17 | ||
18 | # Pattern rule for HTML files in this directory. | |
19 | %.html: _FORCE | |
20 | perl $(ADDVARPL) $(RCLIST) $(VARLIST) $@ | |
21 | ||
22 | default: newrc | |
23 | ||
24 | all: newrc addvars filters addnav | |
25 | ||
26 | # Check if any new resources exist and to create template | |
27 | # documentation page for any new resources. | |
28 | newrc: | |
29 | perl $(MKTMPLPL) $(RCLIST) | |
30 | ||
31 | # Add resource variable tables. | |
32 | addvars: | |
33 | perl $(ADDVARPL) $(RCLIST) $(VARLIST) *.html | |
34 | ||
35 | # Update content-type list for m2hexternal filter. | |
36 | filters: | |
37 | perl $(ADDCTYPEPL) $(MHAEXTPL) mimefilters.html | |
38 | ||
39 | # Add nav links | |
40 | addnav: | |
41 | perl $(ADDNAVPL) *.html | |
42 | ||
43 | # Bogus target to force a target to be updated. | |
44 | _FORCE: |