comparison rogue5/Makefile.in @ 34:655c317b6237

rogue5: add savedir, logfile, bugfixes
author elwin
date Mon, 24 May 2010 20:16:15 +0000
parents f502bf60e6e4
children 2a59cf36ae38
comparison
equal deleted inserted replaced
33:f502bf60e6e4 34:655c317b6237
50 SED = @SED@ 50 SED = @SED@
51 51
52 #SCOREFILE=rogue54.scr 52 #SCOREFILE=rogue54.scr
53 SCOREFILE = @SCOREFILE@ 53 SCOREFILE = @SCOREFILE@
54 54
55 #LOGFILE=rogue54.log
56 LOGFILE = @LOGFILE@
57
55 #LOCKFILE=rogue54.lck 58 #LOCKFILE=rogue54.lck
56 LOCKFILE = @LOCKFILE@ 59 LOCKFILE = @LOCKFILE@
60
61 #SAVEDIR=rogue5save
62 SAVEDIR = @SAVEDIR@
57 63
58 #GROUPOWNER=games 64 #GROUPOWNER=games
59 GROUPOWNER = @GROUPOWNER@ 65 GROUPOWNER = @GROUPOWNER@
60 66
61 #CPPFLAGS=-DHAVE_CONFIG_H 67 #CPPFLAGS=-DHAVE_CONFIG_H
191 gzip -f $(DISTFILE).tar 197 gzip -f $(DISTFILE).tar
192 198
193 install: $(PROGRAM) 199 install: $(PROGRAM)
194 -$(TOUCH) test 200 -$(TOUCH) test
195 -if test ! -f $(DESTDIR)$(SCOREFILE) ; then $(INSTALL) -m 0664 test $(DESTDIR)$(SCOREFILE) ; fi 201 -if test ! -f $(DESTDIR)$(SCOREFILE) ; then $(INSTALL) -m 0664 test $(DESTDIR)$(SCOREFILE) ; fi
202 -if test "x$(LOGFILE)" != "x" -a ! -f $(DESTDIR)$(LOGFILE) ; then \
203 $(INSTALL) -m 0664 test $(DESTDIR)$(LOGFILE) ; fi
204 -if test "x$(SAVEDIR)" != "x" -a ! -f $(DESTDIR)$(SAVEDIR) ; then \
205 $(MKDIR) -p $(DESTDIR)$(SAVEDIR) ; fi
196 -$(INSTALL) -m 0755 $(PROGRAM) $(DESTDIR)$(bindir)/$(PROGRAM) 206 -$(INSTALL) -m 0755 $(PROGRAM) $(DESTDIR)$(bindir)/$(PROGRAM)
197 -if test "x$(GROUPOWNER)" != "x" ; then \ 207 -if test "x$(GROUPOWNER)" != "x" ; then \
198 $(CHGRP) $(GROUPOWNER) $(DESTDIR)$(SCOREFILE) ; \ 208 $(CHGRP) $(GROUPOWNER) $(DESTDIR)$(SCOREFILE) ; \
209 $(CHGRP) $(GROUPOWNER) $(DESTDIR)$(LOGFILE) ; \
199 $(CHGRP) $(GROUPOWNER) $(DESTDIR)$(bindir)/$(PROGRAM) ; \ 210 $(CHGRP) $(GROUPOWNER) $(DESTDIR)$(bindir)/$(PROGRAM) ; \
211 $(CHGRP) $(GROUPOWNER) $(DESTDIR)$(SAVEDIR) ; \
200 $(CHMOD) 02755 $(DESTDIR)$(bindir)/$(PROGRAM) ; \ 212 $(CHMOD) 02755 $(DESTDIR)$(bindir)/$(PROGRAM) ; \
201 $(CHMOD) 0464 $(DESTDIR)$(SCOREFILE) ; \ 213 $(CHMOD) 0464 $(DESTDIR)$(SCOREFILE) ; \
214 $(CHMOD) 0464 $(DESTDIR)$(LOGFILE) ; \
215 $(CHMOD) 0775 $(DESTDIR)$(SAVEDIR) ; \
202 fi 216 fi
203 -if test -d $(man6dir) ; then $(INSTALL) -m 0644 rogue.6 $(DESTDIR)$(man6dir)/$(PROGRAM).6 ; fi 217 -if test -d $(man6dir) ; then $(INSTALL) -m 0644 rogue.6 $(DESTDIR)$(man6dir)/$(PROGRAM).6 ; fi
204 -if test ! -d $(man6dir) ; then $(INSTALL) -m 0644 rogue.6 $(DESTDIR)$(mandir)/$(PROGRAM).6 ; fi 218 -if test ! -d $(man6dir) ; then $(INSTALL) -m 0644 rogue.6 $(DESTDIR)$(mandir)/$(PROGRAM).6 ; fi
205 -$(INSTALL) -m 0644 rogue.doc $(DESTDIR)$(docdir)/$(PROGRAM).doc 219 -$(INSTALL) -m 0644 rogue.doc $(DESTDIR)$(docdir)/$(PROGRAM).doc
206 -$(INSTALL) -m 0644 rogue.html $(DESTDIR)$(docdir)/$(PROGRAM).html 220 -$(INSTALL) -m 0644 rogue.html $(DESTDIR)$(docdir)/$(PROGRAM).html