1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214
|
# Makefile for Xconq documentation.
# Copyright (C) 1993-1997 Stanley T. Shebs.
# Xconq is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
prefix = /usr/games
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
datadir = $(prefix)/lib/xconqdir
mandir = $(prefix)/man
man6dir = $(mandir)/man6
infodir = $(prefix)/info
docdir = $(datadir)/doc
srcdir = .
#srcroot = $(srcdir)/..
SHELL = /bin/sh
INSTALL = install -c
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL)
CC = cc
CFLAGS = -g
MAKEINFO = makeinfo
MAKEINFOFLAGS =
TEX = tex
TEXINDEX = texindex
# Where to find texinfo; dist should include a recent one.
TEXIDIR = .
SET_TEXINPUTS = TEXINPUTS=${TEXIDIR}:.:$(srcdir):$$TEXINPUTS
DOCFILES_PLAY = \
$(srcdir)/xconq.texi \
$(srcdir)/play.texi \
$(srcdir)/commands.texi \
$(srcdir)/x11-sect.texi \
$(srcdir)/curses-sect.texi \
$(srcdir)/mac-sect.texi \
$(srcdir)/glossary.texi \
$(srcdir)/gpl.texi
DOCFILES_DESIGN = \
$(srcdir)/xcdesign.texi \
$(srcdir)/design.texi \
$(srcdir)/x11-dsect.texi \
$(srcdir)/curses-dsect.texi \
$(srcdir)/mac-dsect.texi \
$(srcdir)/refman.texi \
$(srcdir)/hacking.texi \
$(srcdir)/glossary.texi \
syms.texi \
$(srcdir)/syntax.texi \
$(srcdir)/gpl.texi
# Host and target-dependent makefile fragments come in here.
####
# End of host and target-dependent makefile fragments.
.c.o:
$(CC) -c $(ALL_CFLAGS) $<
# Don't have "all" do anything, there is no one right choice for info
# formatting.
all:
install:
install-only:
# Generation of info files.
info: xconq.info xcdesign.info
xconq.info: $(DOCFILES_PLAY)
$(MAKEINFO) -I $(srcdir) -o ./xconq.info $(MAKEINFOFLAGS) $(srcdir)/xconq.texi
xcdesign.info: $(DOCFILES_DESIGN)
$(MAKEINFO) -I $(srcdir) -o ./xcdesign.info $(MAKEINFOFLAGS) $(srcdir)/xcdesign.texi
install-info: info
for i in *.info* ; do \
$(INSTALL_DATA) $$i $(infodir)/$$i ; \
done
# Generation of DVI files.
dvi: playref.dvi gdlref.dvi xconq.dvi unixplay.dvi macplay.dvi xcdesign.dvi
playref.dvi: playref.texi commands.texi
$(SET_TEXINPUTS) $(TEX) $(srcdir)/playref.texi
gdlref.dvi: gdlref.texi syntax.texi syms.texi
$(SET_TEXINPUTS) $(TEX) $(srcdir)/gdlref.texi
syms.texi: syms.raw kwic
./kwic -dots -pad -breakup <syms.raw >syms.texi.new
$(srcdir)/../move-if-change syms.texi.new syms.texi
syms.raw: getsyms.sh refman.texi
$(srcdir)/getsyms.sh $(srcdir)/refman.texi >syms.raw.new
$(srcdir)/../move-if-change syms.raw.new syms.raw
# All-interface player's manual.
xconq.dvi: $(DOCFILES_PLAY)
$(SET_TEXINPUTS) $(TEX) $(srcdir)/xconq.texi
$(TEXINDEX) xconq.??
$(SET_TEXINPUTS) $(TEX) $(srcdir)/xconq.texi
# Unix-only player's manual.
unixplay.dvi: $(DOCFILES_PLAY)
sed -e 's/@set MACINTOSH/@clear MACINTOSH/' \
$(srcdir)/xconq.texi >unixplay.texi
$(SET_TEXINPUTS) $(TEX) unixplay.texi
$(TEXINDEX) unixplay.??
$(SET_TEXINPUTS) $(TEX) unixplay.texi
# Mac-only player's manual.
macplay.dvi: $(DOCFILES_PLAY)
sed -e 's/@set UNIX/@clear UNIX/' \
$(srcdir)/xconq.texi >macplay.texi
$(SET_TEXINPUTS) $(TEX) macplay.texi
$(TEXINDEX) macplay.??
$(SET_TEXINPUTS) $(TEX) macplay.texi
# Game designer's manual.
xcdesign.dvi: $(DOCFILES_DESIGN)
$(SET_TEXINPUTS) $(TEX) $(srcdir)/xcdesign.texi
$(TEXINDEX) xcdesign.??
$(SET_TEXINPUTS) $(TEX) $(srcdir)/xcdesign.texi
# PS file generation.
ps: playref.ps gdlref.ps xconq.ps xcdesign.ps
playref.ps: playref.dvi
dvips playref.dvi -o playref.ps
gdlref.ps: gdlref.dvi
dvips gdlref.dvi -o gdlref.ps
xconq.ps: xconq.dvi
dvips xconq.dvi -o xconq.ps
xcdesign.ps: xcdesign.dvi
dvips xcdesign.dvi -o xcdesign.ps
# HTML generation.
html: xconq_1.html xcdesign_1.html
xconq_1.html: $(DOCFILES_PLAY)
perl $(srcdir)/texi2html -split_section -glossary -menu -verbose $(srcdir)/xconq.texi
xcdesign_1.html: $(DOCFILES_DESIGN)
perl $(srcdir)/texi2html -split_section -glossary -menu -verbose $(srcdir)/xcdesign.texi
# A small KWIC generator.
kwic: kwic.o
$(CC) $(CFLAGS) -o kwic kwic.o
clean-info:
rm -f xconq.info*
rm -f xcdesign.info*
clean-dvi:
rm -f xconq.dvi unixplay.dvi macplay.dvi playref.dvi
rm -f xcdesign.dvi gdlref.dvi
clean-ps:
rm -f *.ps
clean-html:
rm -f *.html
clean:
rm -f xconq.?? xconq.??? playref.?? playref.???
rm -f unixplay.texi unixplay.?? unixplay.???
rm -f macplay.texi macplay.?? macplay.???
rm -f xcdesign.?? xcdesign.??? gdlref.?? gdlref.???
rm -f *.o *.log
rm -f kwic
rm -f syms.raw syms.texi
distclean: clean clean-info clean-dvi clean-ps clean-html
rm -f Makefile config.status syms.texi
extraclean: distclean
rm -f *~* .*~*
realclean: distclean
Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag)
$(SHELL) config.status
|