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.
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'
15 WINSHR
= [-.win.share
]
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
;
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.
;
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."
46 @ $
(ECHO
) "dungeon is up to date."
51 quest.dat
: quest.dat
;
57 x11tiles
: $
(X11TILES
)
60 $
(MAKEDEFS
) : $
(UTILMARKER
)
62 $
(MAKE
)$
(MAKEFLAGS
) $
(MAKEDEFS
)
65 $
(DGNCOMP
) : $
(UTILMARKER
)
67 $
(MAKE
)$
(MAKEFLAGS
) $
(DGNCOMP
)
70 $
(LEVCOMP
) : $
(UTILMARKER
)
72 $
(MAKE
)$
(MAKEFLAGS
) $
(LEVCOMP
)
75 $
(DLB
) : $
(UTILMARKER
)
77 $
(MAKE
)$
(MAKEFLAGS
) $
(DLB
)
80 $
(TILE2X11
) : $
(UTILMARKER
)
82 $
(MAKE
)$
(MAKEFLAGS
) $
(TILE2X11
)
85 $
(X11TILES
) : $
(TILE2X11
) \
86 $
(WINSHR
)monsters.txt $
(WINSHR
)objects.txt $
(WINSHR
)other.txt
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
)
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
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
)
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
;