1 MAKEDEFS(6) Games Manual MAKEDEFS(6)
6 makedefs - NetHack miscellaneous build-time functions
9 makedefs { -o | -d | -e | -m | -v | -p | -q | -r | -h | -z }
11 makedefs --input file --output file --command
14 Makedefs is a build-time tool used for a variety of NetHack(6) source
15 file creation and modification tasks. For historical reasons, makedefs
16 takes two types of command lines. When invoked with a short option,
17 the files operated on are determined when makedefs is compiled. When
18 invoked with a long option, the --input and --output options are used
19 to specify the files for the --command. Each command is only available
20 in one of the two formats.
23 Upper and lower case are both accepted for the short commands.
27 -d Generate data.base.
29 -e Generate dungeon.pdf. The input file dungeon.def is passed
30 through the same logic as that used by the --grep command; see
31 the MDGREP FUNCTIONS section below for details.
33 -m Generate monster.c.
35 -v Generate date.h and options file. It will read dat/gitinfo.txt,
36 only if it is present, to obtain githash= and gitbranch=
37 info and include related preprocessor #defines in date.h file.
41 -q Generate quest.dat.
43 -r Generate the rumors file.
45 -s Generate the bogusmon , engrave and epitaphfiles.
47 -h Generate the oracles file.
49 -z Generate vis_tab.c and vis_tab.h.
53 Show debugging output.
56 Execute a short command. Command is given without preceding
60 Specify the input file for the command (if needed). If the file
61 is - standard input is read.
64 Specify the output file for the command (if needed). If the
65 file is - standard output is written.
68 Generate a version string to standard output without a trailing
69 newline. If specified, the delimiter is used between each part
70 of the version string.
72 --grep Filter the input file to the output file. See the MDGREP FUNC-
73 TIONS section below for information on controlling the filtering
77 Show the name and value for each variable known to the grep
81 Turn on debug tracing for the grep function ( --grep must be
85 Force the value of symbol to be "defined." Symbol must already
89 Force the definition of symbol to be "undefined." Symbol must
90 already be known to makedefs.
93 The --grep command (and certain other commands) filter their input, on
94 a line-by-line basis, according to control lines embedded in the input
95 and on information gleaned from the NetHack(6) configuration. This
96 allows certain changes such as embedding platform-specific documenta-
97 tion into the master documentation files.
101 - The default conditional state is printing enabled.
103 - Any line NOT starting with a caret (^) is either suppressed
104 or passed through unchanged depending on the current condi-
107 - Any line starting with a caret is a control line; as in C,
108 zero or more spaces may be embedded in the line almost any-
109 where (except immediately after the caret); however the
110 caret must be in column 1.
112 - Conditionals may be nested.
114 - Makedefs will exit with an error code if any errors are
115 detected; processing will continue (if it can) to allow as
116 many errors as possible to be detected.
118 - Unknown identifiers are treated as both TRUE and as an
119 error. Note that --undef or #undef in the NetHack(6) con-
120 figuration are different from unknown.
124 ^^ a line starting with a (single) literal caret
129 if the ID is defined set the conditional state to TRUE
132 if the ID is not defined set the conditional state to TRUE
134 ^: else; invert the conditional state
136 ^. end the most recent conditional
139 The NetHack Development Team
145 This file is Copyright (C) Kenneth Lorber and was last modified
146 2018/04/25 (version NetHack-3.6.0:1.10). NetHack may be freely redis-
147 tributed. See license for details.
151 NETHACK 25 May 2015 MAKEDEFS(6)