NHDT->ANH, nethack->anethack, nhdat->anhdat
[aNetHack.git] / sys / vms / Makefile.dat
blob4877c2fc0ed74a7821e87228e70b21dadf73adaa
1 # aNetHack Makefile (VMS) - data files: special levels and other data.
2 # aNetHack 0.0.1 Makefile.dat $ANH-Date: 1432512789 2015/05/25 00:13:09 $ $ANH-Branch: master $:$ANH-Revision: 1.8 $
4 # Copy this file to [.dat]Makefile.; no editing needed.
6 MAKE = $(MMS)
7 CD = set default
8 ECHO = write sys$output
9 NOOP = continue # don't do anything interesting
10 RUN = mcr # simplest way to pass command line args
11 TOUCH = append/New _NLA0: # only one file per $(TOUCH)
12 # support directories, relative to each other and to 'src'
13 DAT = [-.dat]
14 UTL = [-.util]
15 WINSHR = [-.win.share]
16 WINX11 = [-.win.X11]
17 # utilities; must match Makefile.utl in spelling and punctuation
18 MAKEDEFS = $(UTL)makedefs.exe;
19 LEVCOMP = $(UTL)lev_comp.exe;
20 DGNCOMP = $(UTL)dgn_comp.exe;
21 DLB = $(UTL)dlb.exe;
22 TILE2X11 = $(UTL)tile2x11.exe;
23 UTILMARKER = $(UTL)util.timestamp;
25 # note: filespecs have enough punctuation to satisfy DELETE
26 MARKERS = spec_levs.timestamp;,quest_levs.timestamp;
27 VARDAT = data.;,rumors.;,quest.dat;,oracles.;,options.;
28 DUNGEON = dungeon.;
29 X11TILES= x11tiles.;
30 # note: the level lists need to be space separated
31 QUESTLEVS = Arch.des Barb.des Caveman.des Healer.des Knight.des \
32 Monk.des Priest.des Ranger.des Rogue.des Samurai.des Tourist.des \
33 Valkyrie.des Wizard.des
34 SPECLEVS = bigroom.des castle.des endgame.des gehennom.des knox.des \
35 medusa.des mines.des oracle.des sokoban.des tower.des yendor.des
37 all : $(VARDAT) $(DUNGEON) $(MARKERS) $(DLB)
38 @ $(ECHO) "data files are up to date."
40 # these are convenience targets for "manual" interactive use
41 spec_levs : spev_levs.timestamp
42 @ $(ECHO) "special levels are up to date."
43 quest_levs : quest_levs.timestamp
44 @ $(ECHO) "quest levels are up to date."
45 dungeon : $(DUNGEON)
46 @ $(ECHO) "dungeon is up to date."
47 data : data.;
48 @ $(NOOP)
49 rumors : rumors.;
50 @ $(NOOP)
51 quest.dat : quest.dat;
52 @ $(NOOP)
53 oracles : oracles.;
54 @ $(NOOP)
55 options : options.;
56 @ $(NOOP)
57 x11tiles : $(X11TILES)
58 @ $(NOOP)
60 $(MAKEDEFS) : $(UTILMARKER)
61 $(CD) $(UTL)
62 $(MAKE)$(MAKEFLAGS) $(MAKEDEFS)
63 @ $(CD) $(DAT)
65 $(DGNCOMP) : $(UTILMARKER)
66 $(CD) $(UTL)
67 $(MAKE)$(MAKEFLAGS) $(DGNCOMP)
68 @ $(CD) $(DAT)
70 $(LEVCOMP) : $(UTILMARKER)
71 $(CD) $(UTL)
72 $(MAKE)$(MAKEFLAGS) $(LEVCOMP)
73 @ $(CD) $(DAT)
75 $(DLB) : $(UTILMARKER)
76 $(CD) $(UTL)
77 $(MAKE)$(MAKEFLAGS) $(DLB)
78 @ $(CD) $(DAT)
80 $(TILE2X11) : $(UTILMARKER)
81 $(CD) $(UTL)
82 $(MAKE)$(MAKEFLAGS) $(TILE2X11)
83 @ $(CD) $(DAT)
85 $(X11TILES) : $(TILE2X11) \
86 $(WINSHR)monsters.txt $(WINSHR)objects.txt $(WINSHR)other.txt
87 $(RUN) $(TILE2X11) \
88 $(WINSHR)monsters.txt $(WINSHR)objects.txt $(WINSHR)other.txt
90 pet_mark.xbm : $(WINX11)pet_mark.xbm
91 copy $(WINX11)pet_mark.xbm pet_mark.xbm
93 rip.xpm : $(WINX11)rip.xpm
94 copy $(WINX11)rip.xpm rip.xpm
97 data.; : data.base $(MAKEDEFS)
98 $(RUN) $(MAKEDEFS) -d
100 rumors.; : rumors.tru rumors.fal $(MAKEDEFS)
101 $(RUN) $(MAKEDEFS) -r
103 quest.dat; : quest.txt $(MAKEDEFS)
104 $(RUN) $(MAKEDEFS) -q
106 oracles.; : oracles.txt $(MAKEDEFS)
107 $(RUN) $(MAKEDEFS) -h
109 # note: 'options' should have already been made when include/date.h was created
110 options.; : $(MAKEDEFS)
111 $(RUN) $(MAKEDEFS) -v
113 spec_levs.timestamp; : $(SPECLEVS) $(LEVCOMP)
114 $(RUN) $(LEVCOMP) $(SPECLEVS)
115 $(TOUCH) spec_levs.timestamp;
117 quest_levs.timestamp; : $(QUESTLEVS) $(LEVCOMP)
118 $(RUN) $(LEVCOMP) $(QUESTLEVS)
119 $(TOUCH) quest_levs.timestamp;
121 $(DUNGEON) : dungeon.def $(MAKEDEFS) $(DGNCOMP)
122 $(RUN) $(MAKEDEFS) -e !dungeon.def -> dungeon.pdf
123 $(RUN) $(DGNCOMP) dungeon.pdf !dungeon.pdr -> dungeon
125 clean :
126 - if f$search("*.*;-1").nes."" then purge
127 - if f$search("dungeon.pdf").nes."" then delete dungeon.pdf;
128 - if f$search("*.timestamp").nes."" then delete $(MARKERS)
130 spotless : clean
131 - delete $(VARDAT)
132 - if f$search("$(DUNGEON)").nes."" then delete $(DUNGEON)
133 - if f$search("*.lev").nes."" then delete *.lev;
134 - if f$search("$(X11TILES)").nes."" then delete $(X11TILES)
135 - if f$search("*.x%m").nes."" then delete *.x%m; !*.xbm,*.xpm
136 - if f$search("nh*.dlb").nes."" then delete nh*.dlb;
137 - if f$search("anhdat.lst").nes."" then delete anhdat.lst;