annotate urogue/Makefile.in @ 294:fe6b7a1a6dfc

Improve the documentation build process. The choice between troff implementations is now made at configure time, rather than using shell logic in the Makefile to choose while building.
author John "Elwin" Edwards
date Sat, 30 Dec 2017 14:15:52 -0500
parents aa0eefcd7df6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
256
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
1 # UltraRogue: The Ultimate Adventure in the Dungeons of Doom
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
2 # Copyright (C) 1985, 1986, 1992, 1993, 1995 Herb Chong
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
3 # All rights reserved.
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
4 #
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
5 # See the file LICENSE.TXT for full copyright and licensing information.
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
6
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
7 #
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
8 # Makefile for urogue
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
9 #
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
10
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
11 DISTNAME=urogue1.0.7
275
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
12 PACKAGE_TARNAME=@PACKAGE_TARNAME@
256
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
13
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
14 HDRS = dict.h dictutil.h rogue.h
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
15 OBJS = armor.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
16 artifact.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
17 bag.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
18 chase.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
19 command.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
20 daemon.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
21 daemons.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
22 dict.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
23 dictutil.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
24 encumb.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
25 fight.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
26 getplay.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
27 ident.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
28 init.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
29 io.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
30 list.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
31 magic.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
32 main.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
33 maze.o \
257
c4b12d2d1dcd UltraRogue: fix various build failures.
John "Elwin" Edwards
parents: 256
diff changeset
34 mdport.o \
256
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
35 memory.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
36 misc.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
37 monsdata.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
38 monsters.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
39 move.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
40 newlvl.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
41 options.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
42 pack.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
43 passages.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
44 player.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
45 potions.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
46 random.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
47 rings.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
48 rip.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
49 rooms.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
50 save.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
51 scrolls.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
52 state.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
53 status.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
54 sticks.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
55 things.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
56 trader.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
57 verify.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
58 vers.o \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
59 weapons.o \
257
c4b12d2d1dcd UltraRogue: fix various build failures.
John "Elwin" Edwards
parents: 256
diff changeset
60 wizard.o \
c4b12d2d1dcd UltraRogue: fix various build failures.
John "Elwin" Edwards
parents: 256
diff changeset
61 xcrypt.o
256
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
62
273
51ddbe7b992d UltraRogue: begin autoconfiscation.
John "Elwin" Edwards
parents: 257
diff changeset
63 PROGRAM =@PROGRAM@
256
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
64
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
65 CFILES = armor.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
66 artifact.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
67 bag.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
68 chase.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
69 command.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
70 daemon.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
71 daemons.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
72 dict.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
73 dictutil.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
74 encumb.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
75 fight.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
76 getplay.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
77 ident.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
78 init.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
79 io.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
80 list.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
81 magic.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
82 main.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
83 maze.c \
257
c4b12d2d1dcd UltraRogue: fix various build failures.
John "Elwin" Edwards
parents: 256
diff changeset
84 mdport.c \
256
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
85 memory.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
86 misc.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
87 monsdata.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
88 monsters.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
89 move.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
90 newlvl.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
91 options.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
92 pack.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
93 passages.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
94 player.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
95 potions.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
96 random.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
97 rings.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
98 rip.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
99 rooms.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
100 save.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
101 scrolls.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
102 state.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
103 status.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
104 sticks.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
105 things.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
106 trader.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
107 verify.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
108 vers.c \
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
109 weapons.c \
257
c4b12d2d1dcd UltraRogue: fix various build failures.
John "Elwin" Edwards
parents: 256
diff changeset
110 wizard.c \
c4b12d2d1dcd UltraRogue: fix various build failures.
John "Elwin" Edwards
parents: 256
diff changeset
111 xcrypt.c
256
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
112
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
113 MISC= Makefile README LICENSE.TXT history.txt TODO
275
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
114 DOCS = $(PROGRAM).cat
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
115 RAWDOCS = README LICENSE.TXT history.txt TODO
256
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
116
273
51ddbe7b992d UltraRogue: begin autoconfiscation.
John "Elwin" Edwards
parents: 257
diff changeset
117 CC = @CC@
51ddbe7b992d UltraRogue: begin autoconfiscation.
John "Elwin" Edwards
parents: 257
diff changeset
118 CPPFLAGS=@DEFS@
51ddbe7b992d UltraRogue: begin autoconfiscation.
John "Elwin" Edwards
parents: 257
diff changeset
119 CFLAGS=
51ddbe7b992d UltraRogue: begin autoconfiscation.
John "Elwin" Edwards
parents: 257
diff changeset
120 CRLIB = @LIBS@
256
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
121 RM = rm -f
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
122 TAR = tar
275
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
123 GROFF=@GROFF@
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
124 NROFF=@NROFF@
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
125 COLCRT=@COLCRT@
274
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
126 INSTALL=@INSTALL@
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
127
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
128 SCOREFILE=@SCOREFILE@
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
129 LOGFILE=@LOGFILE@
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
130 SAVEDIR=@SAVEDIR@
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
131 CHARDIR=@CHARDIR@
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
132 GROUPOWNER=@GROUPOWNER@
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
133
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
134 DESTDIR=
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
135 prefix=@prefix@
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
136 exec_prefix=@exec_prefix@
275
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
137 datarootdir=@datarootdir@
274
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
138 bindir=@bindir@
275
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
139 docdir=@docdir@
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
140 mandir=@mandir@
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
141 man6dir=$(mandir)/man6
256
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
142
273
51ddbe7b992d UltraRogue: begin autoconfiscation.
John "Elwin" Edwards
parents: 257
diff changeset
143 .c.o:
51ddbe7b992d UltraRogue: begin autoconfiscation.
John "Elwin" Edwards
parents: 257
diff changeset
144 $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $*.o $*.c
51ddbe7b992d UltraRogue: begin autoconfiscation.
John "Elwin" Edwards
parents: 257
diff changeset
145
275
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
146 all: $(PROGRAM) docs
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
147
273
51ddbe7b992d UltraRogue: begin autoconfiscation.
John "Elwin" Edwards
parents: 257
diff changeset
148 $(PROGRAM): $(OBJS) $(MAKEFILE)
256
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
149 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(CRLIB) -o $@
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
150
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
151 clean:
275
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
152 rm -f $(OBJS) urogue a.out core *.map urogue.exe $(PROGRAM).cat
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
153
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
154 docs: $(DOCS)
256
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
155
294
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 275
diff changeset
156 $(PROGRAM).cat@DOCS_GROFF@: urogue.6
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 275
diff changeset
157 $(GROFF) -P-c -P-b -P-u -Tascii -man urogue.6 > $(PROGRAM).cat
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 275
diff changeset
158
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 275
diff changeset
159 $(PROGRAM).cat@DOCS_NROFF@: urogue.6
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 275
diff changeset
160 $(NROFF) -man urogue.6 | $(COLCRT) - > $(PROGRAM).cat
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 275
diff changeset
161
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 275
diff changeset
162 $(PROGRAM).cat@DOCS_NONE@: urogue.6
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 275
diff changeset
163 @echo "Not building" $(PROGRAM).cat
275
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
164
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
165 install: all
274
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
166 touch test
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
167 if test ! -f $(DESTDIR)$(SCOREFILE) ; then \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
168 mkdir -p `dirname $(DESTDIR)$(SCOREFILE)` ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
169 $(INSTALL) -m 0664 test $(DESTDIR)$(SCOREFILE) ; fi
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
170 if test "x$(LOGFILE)" != "x" && test ! -f $(DESTDIR)$(LOGFILE) ; then \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
171 mkdir -p `dirname $(DESTDIR)$(LOGFILE)` ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
172 $(INSTALL) -m 0664 test $(DESTDIR)$(LOGFILE) ; fi
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
173 if test "x$(SAVEDIR)" != "x" && test ! -d $(DESTDIR)$(SAVEDIR) ; then \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
174 mkdir -p $(DESTDIR)$(SAVEDIR) ; fi
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
175 if test "x$(CHARDIR)" != "x" && test ! -d $(DESTDIR)$(CHARDIR) ; then \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
176 mkdir -p $(DESTDIR)$(CHARDIR) ; fi
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
177 mkdir -p $(DESTDIR)$(bindir)
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
178 $(INSTALL) -m 0755 $(PROGRAM) $(DESTDIR)$(bindir)/$(PROGRAM)
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
179 -if test "x$(GROUPOWNER)" != "x" ; then \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
180 chgrp $(GROUPOWNER) $(DESTDIR)$(SCOREFILE) ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
181 chgrp $(GROUPOWNER) $(DESTDIR)$(LOGFILE) ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
182 chgrp $(GROUPOWNER) $(DESTDIR)$(bindir)/$(PROGRAM) ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
183 chgrp $(GROUPOWNER) $(DESTDIR)$(SAVEDIR) ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
184 chgrp $(GROUPOWNER) $(DESTDIR)$(CHARDIR) ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
185 chmod 02755 $(DESTDIR)$(bindir)/$(PROGRAM) ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
186 chmod 0464 $(DESTDIR)$(SCOREFILE) ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
187 chmod 0464 $(DESTDIR)$(LOGFILE) ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
188 chmod 0775 $(DESTDIR)$(SAVEDIR) ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
189 chmod 0775 $(DESTDIR)$(CHARDIR) ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
190 fi
275
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
191 mkdir -p $(DESTDIR)$(man6dir)
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
192 $(INSTALL) -m 0644 urogue.6 $(DESTDIR)$(man6dir)/$(PROGRAM).6
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
193 mkdir -p $(DESTDIR)$(docdir)
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
194 $(INSTALL) -m 0644 $(DOCS) $(RAWDOCS) $(DESTDIR)$(docdir)
274
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
195 $(RM) test
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
196
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
197 uninstall:
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
198 $(RM) $(DESTDIR)$(bindir)/$(PROGRAM)
275
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
199 $(RM) $(DESTDIR)$(man6dir)/$(PROGRAM).6
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
200 $(RM) -r $(DESTDIR)$(docdir)
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
201
274
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
202 reinstall: uninstall install
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
203
256
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
204 dist.src:
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
205 make clean
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
206 tar cf $(DISTNAME)-src.tar $(CFILES) $(HDRS) $(MISC)
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
207 gzip -f $(DISTNAME)-src.tar
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
208
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
209 dist.irix:
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
210 make clean
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
211 make CC=cc CFLAGS="-woff 1116 -O3" urogue
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
212 nroff -man urogue.6 | colcrt - > urogue.cat
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
213 tar cf $(DISTNAME)-irix.tar urogue urogue.cat README LICENSE.TXT
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
214 gzip -f $(DISTNAME)-irix.tar
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
215
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
216 dist.aix:
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
217 make clean
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
218 make CC=xlc CFLAGS="-qmaxmem=16768 -O3 -qstrict" urogue
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
219 nroff -man urogue.6 | colcrt - > urogue.cat
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
220 tar cf $(DISTNAME)-aix.tar urogue urogue.cat README LICENSE.TXT
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
221 gzip -f $(DISTNAME)-aix.tar
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
222
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
223 dist.linux:
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
224 make clean
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
225 make urogue
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
226 groff -man urogue.6 | sed -e 's/.\x08//g' > urogue.cat
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
227 tar cf $(DISTNAME)-linux.tar urogue urogue.cat README LICENSE.TXT
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
228 gzip -f $(DISTNAME)-linux.tar
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
229
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
230 dist.interix:
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
231 make clean
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
232 make urogue
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
233 groff -P-b -P-u -man -Tascii urogue.6 > urogue.cat
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
234 tar cf $(DISTNAME)-interix.tar urogue urogue.cat README LICENSE.TXT
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
235 gzip -f $(DISTNAME)-interix.tar
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
236
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
237 dist.cygwin:
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
238 make clean
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
239 make urogue
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
240 groff -P-c -man -Tascii urogue.6 | sed -e 's/.\x08//g' > urogue.cat
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
241 tar cf $(DISTNAME)-cygwin.tar urogue.exe urogue.cat README LICENSE.TXT
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
242 gzip -f $(DISTNAME)-cygwin.tar
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
243
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
244 dist.djgpp:
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
245 make clean
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
246 make LDFLAGS="-L$(DJDIR)/LIB" CRLIB="-lpdcurses" urogue
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
247 groff -man -Tascii urogue.6 | sed -e 's/.\x08//g' > urogue.cat
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
248 rm -f $(DISTNAME)-djgpp.zip
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
249 zip $(DISTNAME)-djgpp.zip urogue.exe urogue.cat README LICENSE.TXT