annotate rogue4/Makefile.in @ 317:aab761616489 default tip

Rearrange some Autoconf files. Autoconf was failing to detect install-sh at the top level and needed some explicit directions. It also wants config.guess and config.sub to be provided too. A few other macros have also been updated.
author John "Elwin" Edwards
date Tue, 05 Sep 2023 20:05:24 -0400
parents fe6b7a1a6dfc
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
1 #
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
2 # Makefile for rogue
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
3 # @(#)Makefile 4.13 (Berkeley) 1/23/82
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
4 #
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
5 # Rogue: Exploring the Dungeons of Doom
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
6 # Copyright (C) 1980, 1981, 1982 Michael Toy, Ken Arnold and Glenn Wichman
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
7 # All rights reserved.
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
8 #
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
9 # See the file LICENSE.TXT for full copyright and licensing information.
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
10 #
a1dc75e38e73 rogue4: ported to autoconf.
elwin
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@
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
14 PROGRAM=@PROGRAM@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
15
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
16 CC = @CC@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
17 LIBS = @LIBS@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
18
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
19 SCOREFILE=@SCOREFILE@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
20 LOGFILE=@LOGFILE@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
21 SAVEDIR=@SAVEDIR@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
22 LOCKFILE=@LOCKFILE@
116
97f8fdf9595c Makefiles: don't set defaults for CFLAGS.
John "Elwin" Edwards
parents: 109
diff changeset
23
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
24 GROUPOWNER=@GROUPOWNER@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
25
93
8f7c082fde46 Don't set DESTDIR via configure.
John "Elwin" Edwards
parents: 51
diff changeset
26 DESTDIR=
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
27 prefix=@prefix@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
28 exec_prefix=@exec_prefix@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
29 datarootdir=@datarootdir@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
30 bindir=@bindir@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
31 mandir=@mandir@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
32 man6dir=$(mandir)/man6
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
33 docdir=@docdir@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
34
104
fbc75509f4cd Add config.h to the list of headers in the Makefiles.
John "Elwin" Edwards
parents: 96
diff changeset
35 HDRS= rogue.h extern.h config.h
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
36 DOBJS= vers.o extern.o armor.o chase.o command.o daemon.o daemons.o \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
37 fight.o init.o io.o list.o main.o misc.o monsters.o move.o \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
38 new_level.o options.o pack.o passages.o potions.o rings.o rip.o \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
39 rooms.o save.o scrolls.o state.o sticks.o things.o weapons.o wizard.o\
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
40 xcrypt.o mdport.o
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
41 OBJS= $(DOBJS) mach_dep.o
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
42 CFILES= vers.c extern.c armor.c chase.c command.c daemon.c daemons.c \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
43 fight.c init.c io.c list.c main.c misc.c monsters.c move.c \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
44 new_level.c options.c pack.c passages.c potions.c rings.c rip.c \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
45 rooms.c save.c scrolls.c state.c sticks.c things.c weapons.c wizard.c \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
46 mach_dep.c xcrypt.c mdport.c
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
47 MISC= Makefile LICENSE.TXT rogue.6 rogue.me
223
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
48 DOCS= $(PROGRAM).cat $(PROGRAM).doc
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
49
116
97f8fdf9595c Makefiles: don't set defaults for CFLAGS.
John "Elwin" Edwards
parents: 109
diff changeset
50 CFLAGS=
109
ec9db3bb6b0b rogue4: don't include config.h if it wasn't created.
John "Elwin" Edwards
parents: 104
diff changeset
51 CPPFLAGS=@DEFS@
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
52 CRLIB = -lcurses
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
53 RM = rm -f
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
54 TAR = tar
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
55 TOUCH=touch
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
56 MKDIR=mkdir
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
57 CHGRP=chgrp
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
58 CHMOD=chmod
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
59 INSTALL=@INSTALL@
223
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
60 GROFF=@GROFF@
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
61 NROFF=@NROFF@
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
62 COLCRT=@COLCRT@
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
63 TBL=@TBL@
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
64
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
65 SF=
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
66 NAMELIST=
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
67 NL=
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
68 #MACHDEP= -DMAXLOAD=40 -DLOADAV -DCHECKTIME=4
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
69 MACHDEP=
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
70
232
bac2c81fec78 Makefiles: don't rely on built-in implicit rules.
John "Elwin" Edwards
parents: 224
diff changeset
71 .SUFFIXES: .c .o
bac2c81fec78 Makefiles: don't rely on built-in implicit rules.
John "Elwin" Edwards
parents: 224
diff changeset
72
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
73 .c.o:
109
ec9db3bb6b0b rogue4: don't include config.h if it wasn't created.
John "Elwin" Edwards
parents: 104
diff changeset
74 @echo $(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c
ec9db3bb6b0b rogue4: don't include config.h if it wasn't created.
John "Elwin" Edwards
parents: 104
diff changeset
75 @$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c -o $*.o
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
76 # @cpp -P $(CFLAGS) $*.c | ./xstr -v -c -
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
77 # @cc -c $(CFLAGS) x.c
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
78 # @mv x.o $*.o
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
79
223
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
80 all: $(PROGRAM) docs
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
81
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
82 $(PROGRAM): $(HDRS) $(OBJS) # xs.o
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
83 # @rm -f x.c
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
84 # $(CC) $(LDFLAGS) xs.o $(OBJS) $(CRLIB)
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
85 $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
86
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
87 main.o: main.c $(HDRS)
109
ec9db3bb6b0b rogue4: don't include config.h if it wasn't created.
John "Elwin" Edwards
parents: 104
diff changeset
88 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ main.c
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
89
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
90 vers.o:
109
ec9db3bb6b0b rogue4: don't include config.h if it wasn't created.
John "Elwin" Edwards
parents: 104
diff changeset
91 $(CC) -c $(CPPFLAGS) $(CFLAGS) vers.c
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
92
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
93 mach_dep.o: mach_dep.c
109
ec9db3bb6b0b rogue4: don't include config.h if it wasn't created.
John "Elwin" Edwards
parents: 104
diff changeset
94 $(CC) -c $(CPPFLAGS) $(CFLAGS) $(SF) $(NL) $(MACHDEP) mach_dep.c
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
95
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
96 xs.o: strings
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
97 ./xstr
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
98 $(CC) -c $(CFLAGS) xs.c
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
99
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
100 xstr: xstr.c
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
101 $(CC) -s -O -o xstr xstr.c
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
102
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
103 findpw: findpw.c xcrypt.c
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
104 $(CC) -s -o findpw findpw.c xcrypt.c
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
105
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
106 prob: prob.o extern.o xs.o
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
107 $(CC) -O -o prob prob.o extern.o xs.o
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
108
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
109 prob.o: prob.c rogue.h
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
110 $(CC) -O -c prob.c
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
111
223
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
112 docs: $(DOCS)
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
113
294
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 287
diff changeset
114 $(PROGRAM).cat@DOCS_GROFF@: rogue.6
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 287
diff changeset
115 $(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
116
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 287
diff changeset
117 $(PROGRAM).cat@DOCS_NROFF@: rogue.6
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 287
diff changeset
118 $(NROFF) -man rogue.6 | $(COLCRT) - > $(PROGRAM).cat
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 287
diff changeset
119
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 287
diff changeset
120 $(PROGRAM).cat@DOCS_NONE@: rogue.6
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 287
diff changeset
121 @echo "Not building" $(PROGRAM).cat
223
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
122
294
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 287
diff changeset
123 $(PROGRAM).doc@DOCS_GROFF@: rogue.me
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 287
diff changeset
124 $(GROFF) -P-c -P-b -P-u -t -me -Tutf8 rogue.me > $(PROGRAM).doc
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 287
diff changeset
125
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 287
diff changeset
126 $(PROGRAM).doc@DOCS_NROFF@: rogue.me
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 287
diff changeset
127 $(TBL) rogue.me | $(NROFF) -me | $(COLCRT) - > $(PROGRAM).doc
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 287
diff changeset
128
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 287
diff changeset
129 $(PROGRAM).doc@DOCS_NONE@: rogue.me
fe6b7a1a6dfc Improve the documentation build process.
John "Elwin" Edwards
parents: 287
diff changeset
130 @echo "Not building" $(PROGRAM).doc
223
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
131
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
132 clean:
223
0e99eade579c Generate text documentation from the troff source files.
John "Elwin" Edwards
parents: 116
diff changeset
133 rm -f $(POBJS) $(OBJS) core a.out p.out $(PROGRAM) strings make.out rogue.tar vgrind.* x.c x.o xs.c xs.o linterrs findpw distmod.o xs.po xstr rogue rogue.exe rogue.tar.gz $(DOCS) xstr.exe
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
134
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
135 maintainer-clean:
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
136 make clean
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
137 $(RM) Makefile config.h
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
138 $(RM) config.status config.log
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
139 $(RM) $(PROGRAM).scr $(PROGRAM).log $(PROGRAM).lck
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
140 $(RM) rogue.6 rogue.me
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
141
224
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
142 install: all
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
143 $(TOUCH) test
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
144 if test ! -f $(DESTDIR)$(SCOREFILE) ; then \
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
145 $(MKDIR) -p `dirname $(DESTDIR)$(SCOREFILE)` ; \
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
146 $(INSTALL) -m 0664 test $(DESTDIR)$(SCOREFILE) ; fi
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
147 if test "x$(LOGFILE)" != "x" && test ! -f $(DESTDIR)$(LOGFILE) ; then \
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
148 $(MKDIR) -p `dirname $(DESTDIR)$(LOGFILE)` ; \
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
149 $(INSTALL) -m 0664 test $(DESTDIR)$(LOGFILE) ; fi
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
150 if test "x$(SAVEDIR)" != "x" && test ! -d $(DESTDIR)$(SAVEDIR) ; then \
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
151 $(MKDIR) -p $(DESTDIR)$(SAVEDIR) ; fi
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
152 $(MKDIR) -p $(DESTDIR)$(bindir)
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
153 $(INSTALL) -m 0755 $(PROGRAM) $(DESTDIR)$(bindir)/$(PROGRAM)
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
154 -if test "x$(GROUPOWNER)" != "x" ; then \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
155 $(CHGRP) $(GROUPOWNER) $(DESTDIR)$(SCOREFILE) ; \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
156 $(CHGRP) $(GROUPOWNER) $(DESTDIR)$(LOGFILE) ; \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
157 $(CHGRP) $(GROUPOWNER) $(DESTDIR)$(bindir)/$(PROGRAM) ; \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
158 $(CHGRP) $(GROUPOWNER) $(DESTDIR)$(SAVEDIR) ; \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
159 $(CHMOD) 02755 $(DESTDIR)$(bindir)/$(PROGRAM) ; \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
160 $(CHMOD) 0464 $(DESTDIR)$(SCOREFILE) ; \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
161 $(CHMOD) 0464 $(DESTDIR)$(LOGFILE) ; \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
162 $(CHMOD) 0775 $(DESTDIR)$(SAVEDIR) ; \
224
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
163 fi
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
164 if test ! -d $(DESTDIR)$(man6dir) && test -d $(DESTDIR)$(mandir) ; \
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
165 then $(INSTALL) -m 0644 rogue.6 $(DESTDIR)$(mandir)/$(PROGRAM).6 ; \
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
166 else $(MKDIR) -p $(DESTDIR)$(man6dir) ; \
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
167 $(INSTALL) -m 0644 rogue.6 $(DESTDIR)$(man6dir)/$(PROGRAM).6 ; fi
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
168 if test ! -d $(DESTDIR)$(docdir) ; \
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
169 then $(MKDIR) -p $(DESTDIR)$(docdir) ; fi
224
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
170 $(INSTALL) -m 0644 LICENSE.TXT $(DESTDIR)$(docdir)/LICENSE.TXT
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
171 $(INSTALL) -m 0644 rogue.me $(DESTDIR)$(docdir)/$(PROGRAM).me
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
172 $(INSTALL) -m 0644 $(DOCS) $(DESTDIR)$(docdir)
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
173 if test "x$(LOCKFILE)" != "x" && test ! -f $(DESTDIR)$(LOCKFILE) ; then \
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
174 $(INSTALL) -m 0666 test $(DESTDIR)$(LOCKFILE) ; \
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
175 $(RM) $(DESTDIR)$(LOCKFILE) ; \
224
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
176 fi
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
177 $(RM) test
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
178
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
179 uninstall:
224
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
180 $(RM) $(DESTDIR)$(bindir)/$(PROGRAM)
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
181 $(RM) $(DESTDIR)$(man6dir)/$(PROGRAM).6
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
182 $(RM) $(DESTDIR)$(mandir)/$(PROGRAM).6
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
183 $(RM) -r $(DESTDIR)$(docdir)
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
184 if test "x$(LOCKFILE)" != "x" ; then \
4d0f53998e8a Makefile fixes related to installation.
John "Elwin" Edwards
parents: 223
diff changeset
185 $(RM) $(DESTDIR)$(LOCKFILE) ; fi
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
186
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
187 reinstall: uninstall install
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
188
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
189 dist.src:
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
190 make clean
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
191 tar cf $(DISTNAME)-src.tar $(CFILES) $(HDRS) $(MISC)
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
192 gzip -f $(DISTNAME)-src.tar
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
193
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
194 debug.irix:
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
195 make clean
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
196 make CC=cc CFLAGS="-woff 1116 -g -DWIZARD" rogue
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
197 dist.irix:
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
198 make clean
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
199 make CC=cc CFLAGS="-woff 1116 -O3" rogue
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
200 tbl rogue.me | nroff -me | colcrt - > rogue.doc
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
201 nroff -man rogue.6 | colcrt - > rogue.cat
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
202 tar cf $(DISTNAME)-irix.tar rogue LICENSE.TXT rogue.cat rogue.doc
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
203 gzip -f $(DISTNAME)-irix.tar
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
204
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
205 debug.aix:
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
206 make clean
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
207 make CC=xlc CFLAGS="-qmaxmem=16768 -g -qstrict -DWIZARD" rogue
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
208 dist.aix:
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
209 make clean
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
210 make CC=xlc CFLAGS="-qmaxmem=16768 -O3 -qstrict" rogue
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
211 tbl rogue.me | nroff -me | colcrt - > rogue.doc
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
212 nroff -man rogue.6 | colcrt - > rogue.cat
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
213 tar cf $(DISTNAME)-aix.tar rogue LICENSE.TXT rogue.cat rogue.doc
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
214 gzip -f $(DISTNAME)-aix.tar
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
215
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
216 debug.linux:
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
217 make clean
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
218 make CFLAGS="-g3 -DWIZARD" rogue
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
219 dist.linux:
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
220 make clean
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
221 make rogue
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
222 groff -P-c -t -me -Tascii rogue.me | sed -e 's/.\x08//g' > rogue.doc
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
223 groff -man rogue.6 | sed -e 's/.\x08//g' > rogue.cat
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
224 tar cf $(DISTNAME)-linux.tar rogue LICENSE.TXT rogue.cat rogue.doc
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
225 gzip -f $(DISTNAME)-linux.tar
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
226
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
227 debug.interix:
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
228 make clean
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
229 make CFLAGS="-g3 -DWIZARD" rogue
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
230 dist.interix:
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
231 make clean
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
232 make rogue
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
233 groff -P-b -P-u -t -me -Tascii rogue.me > rogue.doc
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
234 groff -P-b -P-u -man -Tascii rogue.6 > rogue.cat
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
235 tar cf $(DISTNAME)-interix.tar rogue LICENSE.TXT rogue.cat rogue.doc
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
236 gzip -f $(DISTNAME)-interix.tar
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
237
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
238 debug.cygwin:
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
239 make clean
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
240 make CFLAGS="-g3 -DWIZARD" rogue
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
241 dist.cygwin:
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
242 make clean
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
243 make rogue
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
244 groff -P-c -t -me -Tascii rogue.me | sed -e 's/.\x08//g' > rogue.doc
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
245 groff -P-c -man -Tascii rogue.6 | sed -e 's/.\x08//g' > rogue.cat
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
246 tar cf $(DISTNAME)-cygwin.tar rogue.exe LICENSE.TXT rogue.cat rogue.doc
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
247 gzip -f $(DISTNAME)-cygwin.tar
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
248
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
249 debug.djgpp:
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
250 make clean
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
251 make CFLAGS="-g3 -DWIZARD" LDFLAGS="-L$(DJDIR)/LIB" rogue
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
252 dist.djgpp:
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
253 make clean
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
254 make CFLAGS="-O3" LDFLAGS="-L$(DJDIR)/LIB" rogue
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
255 groff -t -me -Tascii rogue.me | sed -e 's/.\x08//g' > rogue.doc
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
256 groff -man -Tascii rogue.6 | sed -e 's/.\x08//g' > rogue.cat
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
257 rm -f $(DISTNAME)-djgpp.zip
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
258 zip $(DISTNAME)-djgpp.zip rogue.exe LICENSE.TXT rogue.cat rogue.doc