PennMUSH Community

root/1.8.3/trunk/game/txt/Makefile

Revision 846, 1.1 kB (checked in by penndev, 1 year ago)

PennMUSH 1.8.3p2 release candidate.

Line 
1 #
2 # This makefile only rebuilds the text files we need it
3 #
4 # By default we build help, news, and events.
5 # To build rules.txt:
6 #   add rules.txt to the TXT line
7 # Do the same to build index.txt (but add index.txt)
8
9 TXT=help.txt news.txt events.txt
10
11 # INDEX_FLAGS can be set to one or more of:
12 #  --first     Insert the first entry alias in the index
13 #  --longest   Insert the longest entry alias in the index
14 # If left blank, all aliases are indexed. This is the default behavior.
15 # (By default, this variable is not used in making the help index,
16 # but if you want it to be, you can figure out how from the examples
17 # below.)
18 INDEX_FLAGS=
19
20 all: $(TXT)
21
22 help.txt: hlp/*.hlp hlp compose.sh
23     sh ./compose.sh hlp
24     mv hlp.txt help.txt
25
26 news.txt: nws/*.nws nws compose.sh
27     sh ./compose.sh nws $(INDEX_FLAGS)
28     mv nws.txt news.txt
29
30 events.txt: evt/*.evt evt compose.sh
31     sh ./compose.sh evt $(INDEX_FLAGS)
32     mv evt.txt events.txt
33
34 rules.txt: rules/*.rules rules compose.sh
35     sh ./compose.sh rules $(INDEX_FLAGS)
36
37 index.txt: index/*.index index compose.sh
38     ./compose.sh index $(INDEX_FLAGS)
39
40 clean:
41     -rm -f $(IDX) $(TXT)
42     -rm -f compose.sh
43     -rm -f hlp/*.orig hlp/*.rej hlp/\#* hlp/*~
44
45
Note: See TracBrowser for help on using the browser.