Mercurial > hg > early-roguelike
annotate rogue3/Makefile.in @ 315:ad2570b5b21f
Advanced Rogue 5, 7: fix some trading post messages.
When attempting to buy an unaffordable object, messages were often of
the form "You can't afford that a scroll of hold monster !", because
the object description (stored in curpurch) was the same text used in
inventory displays.
This has been worked around by inspecting the contents of curpurch and
using different message templates.
author | John "Elwin" Edwards |
---|---|
date | Sun, 24 Oct 2021 20:26:21 -0400 |
parents | fe6b7a1a6dfc |
children |
rev | line source |
---|---|
0
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
1 # |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
2 # Makefile for rogue |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
3 # %W% (Berkeley) %G% |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
4 # |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
5 # Rogue: Exploring the Dungeons of Doom |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
6 # Copyright (C) 1980, 1981 Michael Toy, Ken Arnold and Glenn Wichman |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
7 # All rights reserved. |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
8 # |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
9 # See the file LICENSE.TXT for full copyright and licensing information. |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
10 # |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
11 |
287
0b3d1b38998f
Remove version numbers from docdir paths.
John "Elwin" Edwards
parents:
232
diff
changeset
|
12 DISTNAME=@PACKAGE_TARNAME@-@PACKAGE_VERSION@ |
0b3d1b38998f
Remove version numbers from docdir paths.
John "Elwin" Edwards
parents:
232
diff
changeset
|
13 PACKAGE_TARNAME=@PACKAGE_TARNAME@ |
88 | 14 PROGRAM=@PROGRAM@ |
0
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
15 |
91
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
16 SCOREFILE=@SCOREFILE@ |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
17 LOGFILE=@LOGFILE@ |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
18 SAVEDIR=@SAVEDIR@ |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
19 GROUPOWNER=@GROUPOWNER@ |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
20 |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
21 DESTDIR= |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
22 prefix=@prefix@ |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
23 exec_prefix=@exec_prefix@ |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
24 datarootdir=@datarootdir@ |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
25 bindir=@bindir@ |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
26 mandir=@mandir@ |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
27 man6dir=$(mandir)/man6 |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
28 docdir=@docdir@ |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
29 |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
30 |
0
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
31 O=o |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
32 |
91
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
33 HDRS= rogue.h machdep.h config.h |
0
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
34 |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
35 OBJS1 = vers.$(O) armor.$(O) chase.$(O) command.$(O) daemon.$(O) daemons.$(O) \ |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
36 fight.$(O) init.$(O) io.$(O) list.$(O) main.$(O) mdport.$(O) \ |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
37 misc.$(O) monsters.$(O) move.$(O) newlevel.$(O) options.$(O) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
38 OBJS2 = pack.$(O) passages.$(O) potions.$(O) rings.$(O) rip.$(O) rooms.$(O) \ |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
39 save.$(O) scrolls.$(O) state.$(O) sticks.$(O) things.$(O) \ |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
40 weapons.$(O) wizard.$(O) xcrypt.$(O) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
41 OBJS = $(OBJS1) $(OBJS2) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
42 |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
43 CFILES= vers.c armor.c chase.c command.c daemon.c daemons.c fight.c \ |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
44 init.c io.c list.c main.c mdport.c misc.c monsters.c move.c newlevel.c \ |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
45 options.c pack.c passages.c potions.c rings.c rip.c rooms.c \ |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
46 save.c scrolls.c state.c sticks.c things.c weapons.c wizard.c xcrypt.c |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
47 |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
48 |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
49 MISC_C= |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
50 DOCSRC= rogue.6 rogue.r |
223
0e99eade579c
Generate text documentation from the troff source files.
John "Elwin" Edwards
parents:
222
diff
changeset
|
51 DOCS = $(PROGRAM).doc $(PROGRAM).cat |
224
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
52 RAWDOCS = LICENSE.TXT rogue36.html readme36.html |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
53 MISC = Makefile $(MISC_C) $(PROGRAM).sln $(PROGRAM).vcproj $(RAWDOCS) $(DOCS)\ |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
54 $(DOCSRC) |
0
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
55 |
231 | 56 CC = @CC@ |
88 | 57 CPPFLAGS =@DEFS@ |
0
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
58 ROPTS = |
116
97f8fdf9595c
Makefiles: don't set defaults for CFLAGS.
John "Elwin" Edwards
parents:
92
diff
changeset
|
59 COPTS = |
20
bbf072f8bafa
rogue3: move file locations from Makefile to machdep.h
edwarj4
parents:
16
diff
changeset
|
60 CFLAGS= $(COPTS) $(ROPTS) |
222 | 61 LIBS = @LIBS@ |
0
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
62 RM = rm -f |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
63 LD = $(CC) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
64 LDOUT = -o |
91
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
65 INSTALL=@INSTALL@ |
223
0e99eade579c
Generate text documentation from the troff source files.
John "Elwin" Edwards
parents:
222
diff
changeset
|
66 GROFF=@GROFF@ |
0e99eade579c
Generate text documentation from the troff source files.
John "Elwin" Edwards
parents:
222
diff
changeset
|
67 NROFF=@NROFF@ |
0e99eade579c
Generate text documentation from the troff source files.
John "Elwin" Edwards
parents:
222
diff
changeset
|
68 COLCRT=@COLCRT@ |
0e99eade579c
Generate text documentation from the troff source files.
John "Elwin" Edwards
parents:
222
diff
changeset
|
69 TBL=@TBL@ |
0
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
70 |
232
bac2c81fec78
Makefiles: don't rely on built-in implicit rules.
John "Elwin" Edwards
parents:
231
diff
changeset
|
71 .SUFFIXES: .obj .o .c |
0
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
72 |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
73 .c.obj: |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
74 $(CC) $(CFLAGS) /c $*.c |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
75 |
232
bac2c81fec78
Makefiles: don't rely on built-in implicit rules.
John "Elwin" Edwards
parents:
231
diff
changeset
|
76 .c.o: |
bac2c81fec78
Makefiles: don't rely on built-in implicit rules.
John "Elwin" Edwards
parents:
231
diff
changeset
|
77 $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $*.o $*.c |
bac2c81fec78
Makefiles: don't rely on built-in implicit rules.
John "Elwin" Edwards
parents:
231
diff
changeset
|
78 |
223
0e99eade579c
Generate text documentation from the troff source files.
John "Elwin" Edwards
parents:
222
diff
changeset
|
79 all: $(PROGRAM)$(EXE) docs |
0e99eade579c
Generate text documentation from the troff source files.
John "Elwin" Edwards
parents:
222
diff
changeset
|
80 |
0
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
81 $(PROGRAM)$(EXE): $(HDRS) $(OBJS) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
82 $(LD) $(LDFLAGS) $(OBJS) $(LIBS) $(LDOUT)$@ |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
83 |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
84 clean: |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
85 $(RM) $(OBJS1) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
86 $(RM) $(OBJS2) |
223
0e99eade579c
Generate text documentation from the troff source files.
John "Elwin" Edwards
parents:
222
diff
changeset
|
87 $(RM) core $(PROGRAM) $(PROGRAM).exe $(DOCS) $(DISTNAME).tar $(DISTNAME).tar.gz |
0
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
88 $(RM) $(DISTNAME).zip |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
89 |
223
0e99eade579c
Generate text documentation from the troff source files.
John "Elwin" Edwards
parents:
222
diff
changeset
|
90 docs: $(DOCS) |
0e99eade579c
Generate text documentation from the troff source files.
John "Elwin" Edwards
parents:
222
diff
changeset
|
91 |
294
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
287
diff
changeset
|
92 $(PROGRAM).doc@DOCS_GROFF@: rogue.r |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
287
diff
changeset
|
93 $(GROFF) -P-c -P-b -P-u -t -ms -Tutf8 rogue.r > $(PROGRAM).doc |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
287
diff
changeset
|
94 |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
287
diff
changeset
|
95 $(PROGRAM).doc@DOCS_NROFF@: rogue.r |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
287
diff
changeset
|
96 $(TBL) rogue.r | $(NROFF) -ms | $(COLCRT) - > $(PROGRAM).doc |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
287
diff
changeset
|
97 |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
287
diff
changeset
|
98 $(PROGRAM).doc@DOCS_NONE@: rogue.r |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
287
diff
changeset
|
99 @echo "Not building" $(PROGRAM).doc |
223
0e99eade579c
Generate text documentation from the troff source files.
John "Elwin" Edwards
parents:
222
diff
changeset
|
100 |
294
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
287
diff
changeset
|
101 $(PROGRAM).cat@DOCS_GROFF@: rogue.6 |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
287
diff
changeset
|
102 $(GROFF) -P-c -P-b -P-u -Tascii -man rogue.6 > $(PROGRAM).cat |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
287
diff
changeset
|
103 |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
287
diff
changeset
|
104 $(PROGRAM).cat@DOCS_NROFF@: rogue.6 |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
287
diff
changeset
|
105 $(NROFF) -man rogue.6 | $(COLCRT) - > $(PROGRAM).cat |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
287
diff
changeset
|
106 |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
287
diff
changeset
|
107 $(PROGRAM).cat@DOCS_NONE@: rogue.6 |
fe6b7a1a6dfc
Improve the documentation build process.
John "Elwin" Edwards
parents:
287
diff
changeset
|
108 @echo "Not building" $(PROGRAM).cat |
223
0e99eade579c
Generate text documentation from the troff source files.
John "Elwin" Edwards
parents:
222
diff
changeset
|
109 |
224
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
110 install: all |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
111 touch test |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
112 if test ! -f $(DESTDIR)$(SCOREFILE) ; then \ |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
113 mkdir -p `dirname $(DESTDIR)$(SCOREFILE)` ; \ |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
114 $(INSTALL) -m 0664 test $(DESTDIR)$(SCOREFILE) ; fi |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
115 if test "x$(LOGFILE)" != "x" && test ! -f $(DESTDIR)$(LOGFILE) ; then \ |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
116 mkdir -p `dirname $(DESTDIR)$(LOGFILE)` ; \ |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
117 $(INSTALL) -m 0664 test $(DESTDIR)$(LOGFILE) ; fi |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
118 if test "x$(SAVEDIR)" != "x" && test ! -d $(DESTDIR)$(SAVEDIR) ; then \ |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
119 mkdir -p $(DESTDIR)$(SAVEDIR) ; fi |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
120 mkdir -p $(DESTDIR)$(bindir) |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
121 $(INSTALL) -m 0755 $(PROGRAM) $(DESTDIR)$(bindir)/$(PROGRAM) |
91
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
122 -if test "x$(GROUPOWNER)" != "x" ; then \ |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
123 chgrp $(GROUPOWNER) $(DESTDIR)$(SCOREFILE) ; \ |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
124 chgrp $(GROUPOWNER) $(DESTDIR)$(LOGFILE) ; \ |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
125 chgrp $(GROUPOWNER) $(DESTDIR)$(bindir)/$(PROGRAM) ; \ |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
126 chgrp $(GROUPOWNER) $(DESTDIR)$(SAVEDIR) ; \ |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
127 chmod 02755 $(DESTDIR)$(bindir)/$(PROGRAM) ; \ |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
128 chmod 0464 $(DESTDIR)$(SCOREFILE) ; \ |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
129 chmod 0464 $(DESTDIR)$(LOGFILE) ; \ |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
130 chmod 0775 $(DESTDIR)$(SAVEDIR) ; \ |
224
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
131 fi |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
132 if test ! -d $(DESTDIR)$(man6dir) && test -d $(DESTDIR)$(mandir) ; \ |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
133 then $(INSTALL) -m 0644 rogue.6 $(DESTDIR)$(mandir)/$(PROGRAM).6 ; \ |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
134 else mkdir -p $(DESTDIR)$(man6dir) ; \ |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
135 $(INSTALL) -m 0644 rogue.6 $(DESTDIR)$(man6dir)/$(PROGRAM).6 ; fi |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
136 if test ! -d $(DESTDIR)$(docdir) ; \ |
91
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
137 then mkdir -p $(DESTDIR)$(docdir) ; fi |
224
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
138 $(INSTALL) -m 0644 rogue.r $(DESTDIR)$(docdir)/$(PROGRAM).r |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
139 $(INSTALL) -m 0644 $(DOCS) $(RAWDOCS) $(DESTDIR)$(docdir) |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
140 $(RM) test |
91
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
141 |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
142 uninstall: |
224
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
143 $(RM) $(DESTDIR)$(bindir)/$(PROGRAM) |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
144 $(RM) $(DESTDIR)$(man6dir)/$(PROGRAM).6 |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
145 $(RM) $(DESTDIR)$(mandir)/$(PROGRAM).6 |
4d0f53998e8a
Makefile fixes related to installation.
John "Elwin" Edwards
parents:
223
diff
changeset
|
146 $(RM) -r $(DESTDIR)$(docdir) |
91
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
147 |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
148 reinstall: uninstall install |
e5ddbaf324d4
rogue3: add install and uninstall targets to Makefile.
John "Elwin" Edwards
parents:
88
diff
changeset
|
149 |
0
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
150 dist.src: |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
151 make clean |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
152 tar cf $(DISTNAME)-src.tar $(CFILES) $(HDRS) $(MISC) $(DOCS) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
153 gzip -f $(DISTNAME)-src.tar |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
154 |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
155 dist.irix: |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
156 @$(MAKE) clean |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
157 @$(MAKE) CC=cc CFLAGS="-woff 1116 -O3" $(PROGRAM) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
158 # tbl rogue.r | nroff -ms | colcrt - > $(PROGRAM).doc |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
159 # nroff -man rogue.6 | colcrt - > $(PROGRAM).cat |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
160 tar cf $(DISTNAME)-irix.tar $(PROGRAM) LICENSE.TXT $(DOCS) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
161 gzip -f $(DISTNAME)-irix.tar |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
162 |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
163 dist.aix: |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
164 @$(MAKE) clean |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
165 @$(MAKE) CC=xlc CFLAGS="-qmaxmem=16768 -O3 -qstrict" $(PROGRAM) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
166 # tbl rogue.r | nroff -ms | colcrt - > $(ROGUE).doc |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
167 # nroff -man rogue.6 | colcrt - > $(ROGUE).cat |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
168 tar cf $(DISTNAME)-aix.tar $(PROGRAM) LICENSE.TXT $(DOCS) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
169 gzip -f $(DISTNAME)-aix.tar |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
170 |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
171 dist.linux: |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
172 @$(MAKE) clean |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
173 @$(MAKE) $(PROGRAM) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
174 # groff -P-c -t -ms -Tascii rogue.r | sed -e 's/.\x08//g' > $(PROGRAM).doc |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
175 # groff -man rogue.6 | sed -e 's/.\x08//g' > $(PROGRAM).cat |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
176 tar cf $(DISTNAME)-linux.tar $(PROGRAM) LICENSE.TXT $(DOCS) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
177 gzip -f $(DISTNAME)-linux.tar |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
178 |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
179 debug.linux: |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
180 @$(MAKE) clean |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
181 @$(MAKE) COPTS="-g" $(PROGRAM) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
182 # groff -P-c -t -ms -Tascii rogue.r | sed -e 's/.\x08//g' > $(PROGRAM).doc |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
183 # groff -man rogue.6 | sed -e 's/.\x08//g' > $(PROGRAM).cat |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
184 |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
185 dist.interix: |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
186 @$(MAKE) clean |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
187 @$(MAKE) COPTS="-ansi" $(PROGRAM) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
188 # groff -P-b -P-u -t -ms -Tascii rogue.r > $(PROGRAM).doc |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
189 # groff -P-b -P-u -man -Tascii rogue.6 > $(PROGRAM).cat |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
190 tar cf $(DISTNAME)-interix.tar $(PROGRAM) LICENSE.TXT $(DOCS) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
191 gzip -f $(DISTNAME)-interix.tar |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
192 |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
193 dist.cygwin: |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
194 @$(MAKE) --no-print-directory clean |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
195 @$(MAKE) COPTS="-I/usr/include/ncurses" --no-print-directory $(PROGRAM) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
196 # groff -P-c -t -ms -Tascii rogue.r | sed -e 's/.\x08//g' > $(PROGRAM).doc |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
197 # groff -P-c -man -Tascii rogue.6 | sed -e 's/.\x08//g' > $(PROGRAM).cat |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
198 tar cf $(DISTNAME)-cygwin.tar $(PROGRAM).exe LICENSE.TXT $(DOCS) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
199 gzip -f $(DISTNAME)-cygwin.tar |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
200 |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
201 # |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
202 # Use MINGW32-MAKE to build this target |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
203 # |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
204 dist.mingw32: |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
205 @$(MAKE) --no-print-directory RM="cmd /c del" clean |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
206 @$(MAKE) --no-print-directory COPTS="-I../pdcurses" LIBS="../pdcurses/pdcurses.a" $(PROGRAM) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
207 cmd /c del $(DISTNAME)-mingw32.zip |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
208 zip $(DISTNAME)-mingw32.zip $(PROGRAM).exe LICENSE.TXT $(DOCS) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
209 |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
210 # |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
211 # Seperate doc targets for DJGPP prevent strange SIGSEGV in groff |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
212 # in that environment. |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
213 # |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
214 doc.djgpp: |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
215 groff -t -ms -Tascii rogue.r | sed -e 's/.\x08//g' > $(PROGRAM).doc |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
216 |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
217 cat.djgpp: |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
218 groff -man -Tascii rogue.6 | sed -e 's/.\x08//g' > $(PROGRAM).cat |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
219 |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
220 dist.djgpp: |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
221 @$(MAKE) --no-print-directory clean |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
222 @$(MAKE) --no-print-directory LDFLAGS="-L$(DJDIR)/LIB" \ |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
223 LIBS="-lpdcur" $(PROGRAM) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
224 # @$(MAKE) --no-print-directory doc.djgpp |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
225 # @$(MAKE) --no-print-directory cat.djgpp |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
226 rm -f $(DISTNAME)-djgpp.zip |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
227 zip $(DISTNAME)-djgpp.zip $(PROGRAM) LICENSE.TXT $(DOCS) |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
228 |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
229 # |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
230 # Use NMAKE to build this target |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
231 # |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
232 dist.win32: |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
233 @$(MAKE) /NOLOGO O="obj" RM="-del" clean |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
234 @$(MAKE) /NOLOGO O="obj" CC="@CL" LD="link" LDOUT="/OUT:" EXE=".exe"\ |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
235 LIBS="/NODEFAULTLIB:LIBC ..\pdcurses\pdcurses.lib shell32.lib user32.lib Advapi32.lib" \ |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
236 COPTS="-nologo -D_CRT_SECURE_NO_DEPRECATE -I..\pdcurses \ |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
237 -Ox -wd4033 -wd4716" $(PROGRAM).exe |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
238 -del $(DISTNAME)-win32.zip |
527e2150eaf0
Import Rogue 3.6 from the Roguelike Restoration Project (r1490)
edwarj4
parents:
diff
changeset
|
239 zip $(DISTNAME)-win32.zip $(PROGRAM).exe LICENSE.TXT $(DOCS) |