annotate urogue/Makefile.in @ 275:aa0eefcd7df6

UltraRogue: build and install documentation in the Makefile.
author John "Elwin" Edwards
date Sat, 09 Sep 2017 07:25:23 -0400
parents 603e8a99c859
children fe6b7a1a6dfc
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
275
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
156 $(PROGRAM).cat: urogue.6
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
157 if test "x$(GROFF)" != "x" ; then \
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
158 $(GROFF) -P-c -P-b -P-u -Tascii -man urogue.6 > $(PROGRAM).cat ;\
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
159 elif test "x$(NROFF)" != "x" && test "x$(COLCRT)" != "x" ; then \
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
160 $(NROFF) -man urogue.6 | $(COLCRT) - > $(PROGRAM).cat ;\
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
161 fi
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
162
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
163 install: all
274
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
164 touch test
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
165 if test ! -f $(DESTDIR)$(SCOREFILE) ; then \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
166 mkdir -p `dirname $(DESTDIR)$(SCOREFILE)` ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
167 $(INSTALL) -m 0664 test $(DESTDIR)$(SCOREFILE) ; fi
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
168 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
169 mkdir -p `dirname $(DESTDIR)$(LOGFILE)` ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
170 $(INSTALL) -m 0664 test $(DESTDIR)$(LOGFILE) ; fi
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
171 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
172 mkdir -p $(DESTDIR)$(SAVEDIR) ; fi
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
173 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
174 mkdir -p $(DESTDIR)$(CHARDIR) ; fi
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
175 mkdir -p $(DESTDIR)$(bindir)
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
176 $(INSTALL) -m 0755 $(PROGRAM) $(DESTDIR)$(bindir)/$(PROGRAM)
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
177 -if test "x$(GROUPOWNER)" != "x" ; then \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
178 chgrp $(GROUPOWNER) $(DESTDIR)$(SCOREFILE) ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
179 chgrp $(GROUPOWNER) $(DESTDIR)$(LOGFILE) ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
180 chgrp $(GROUPOWNER) $(DESTDIR)$(bindir)/$(PROGRAM) ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
181 chgrp $(GROUPOWNER) $(DESTDIR)$(SAVEDIR) ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
182 chgrp $(GROUPOWNER) $(DESTDIR)$(CHARDIR) ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
183 chmod 02755 $(DESTDIR)$(bindir)/$(PROGRAM) ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
184 chmod 0464 $(DESTDIR)$(SCOREFILE) ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
185 chmod 0464 $(DESTDIR)$(LOGFILE) ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
186 chmod 0775 $(DESTDIR)$(SAVEDIR) ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
187 chmod 0775 $(DESTDIR)$(CHARDIR) ; \
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
188 fi
275
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
189 mkdir -p $(DESTDIR)$(man6dir)
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
190 $(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
191 mkdir -p $(DESTDIR)$(docdir)
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
192 $(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
193 $(RM) test
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
194
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
195 uninstall:
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
196 $(RM) $(DESTDIR)$(bindir)/$(PROGRAM)
275
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
197 $(RM) $(DESTDIR)$(man6dir)/$(PROGRAM).6
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
198 $(RM) -r $(DESTDIR)$(docdir)
aa0eefcd7df6 UltraRogue: build and install documentation in the Makefile.
John "Elwin" Edwards
parents: 274
diff changeset
199
274
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
200 reinstall: uninstall install
603e8a99c859 UltraRogue: add install and uninstall targets to the Makefile.
John "Elwin" Edwards
parents: 273
diff changeset
201
256
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
202 dist.src:
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
203 make clean
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
204 tar cf $(DISTNAME)-src.tar $(CFILES) $(HDRS) $(MISC)
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
205 gzip -f $(DISTNAME)-src.tar
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
206
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
207 dist.irix:
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
208 make clean
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
209 make CC=cc CFLAGS="-woff 1116 -O3" urogue
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
210 nroff -man urogue.6 | colcrt - > urogue.cat
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
211 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
212 gzip -f $(DISTNAME)-irix.tar
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
213
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
214 dist.aix:
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
215 make clean
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
216 make CC=xlc CFLAGS="-qmaxmem=16768 -O3 -qstrict" urogue
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
217 nroff -man urogue.6 | colcrt - > urogue.cat
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
218 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
219 gzip -f $(DISTNAME)-aix.tar
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
220
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
221 dist.linux:
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
222 make clean
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
223 make urogue
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
224 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
225 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
226 gzip -f $(DISTNAME)-linux.tar
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
227
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
228 dist.interix:
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
229 make clean
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
230 make urogue
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
231 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
232 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
233 gzip -f $(DISTNAME)-interix.tar
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
234
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
235 dist.cygwin:
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
236 make clean
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
237 make urogue
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
238 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
239 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
240 gzip -f $(DISTNAME)-cygwin.tar
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
241
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
242 dist.djgpp:
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
243 make clean
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
244 make LDFLAGS="-L$(DJDIR)/LIB" CRLIB="-lpdcurses" urogue
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
245 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
246 rm -f $(DISTNAME)-djgpp.zip
c495a4f288c6 Import UltraRogue from the Roguelike Restoration Project (r1490)
John "Elwin" Edwards
parents:
diff changeset
247 zip $(DISTNAME)-djgpp.zip urogue.exe urogue.cat README LICENSE.TXT