diff 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
line wrap: on
line diff
--- a/rogue5/Makefile.in	Mon May 24 20:10:59 2010 +0000
+++ b/rogue5/Makefile.in	Mon May 24 20:16:15 2010 +0000
@@ -52,9 +52,15 @@
 #SCOREFILE=rogue54.scr
 SCOREFILE = @SCOREFILE@
 
+#LOGFILE=rogue54.log
+LOGFILE = @LOGFILE@
+
 #LOCKFILE=rogue54.lck
 LOCKFILE = @LOCKFILE@
 
+#SAVEDIR=rogue5save
+SAVEDIR = @SAVEDIR@
+
 #GROUPOWNER=games
 GROUPOWNER = @GROUPOWNER@
 
@@ -193,12 +199,20 @@
 install: $(PROGRAM)
 	-$(TOUCH) test
 	-if test ! -f $(DESTDIR)$(SCOREFILE) ; then $(INSTALL) -m 0664 test $(DESTDIR)$(SCOREFILE) ; fi
+	-if test "x$(LOGFILE)" != "x" -a ! -f $(DESTDIR)$(LOGFILE) ; then \
+	$(INSTALL) -m 0664 test $(DESTDIR)$(LOGFILE) ; fi
+	-if test "x$(SAVEDIR)" != "x" -a ! -f $(DESTDIR)$(SAVEDIR) ; then \
+	$(MKDIR) -p $(DESTDIR)$(SAVEDIR) ; fi
 	-$(INSTALL) -m 0755 $(PROGRAM) $(DESTDIR)$(bindir)/$(PROGRAM)
 	-if test "x$(GROUPOWNER)" != "x" ; then \
 	    $(CHGRP) $(GROUPOWNER) $(DESTDIR)$(SCOREFILE) ; \
+	    $(CHGRP) $(GROUPOWNER) $(DESTDIR)$(LOGFILE) ; \
 	    $(CHGRP) $(GROUPOWNER) $(DESTDIR)$(bindir)/$(PROGRAM) ; \
+	    $(CHGRP) $(GROUPOWNER) $(DESTDIR)$(SAVEDIR) ; \
 	    $(CHMOD) 02755 $(DESTDIR)$(bindir)/$(PROGRAM) ; \
 	    $(CHMOD) 0464 $(DESTDIR)$(SCOREFILE) ; \
+	    $(CHMOD) 0464 $(DESTDIR)$(LOGFILE) ; \
+	    $(CHMOD) 0775 $(DESTDIR)$(SAVEDIR) ; \
          fi
 	-if test -d $(man6dir) ; then $(INSTALL) -m 0644 rogue.6 $(DESTDIR)$(man6dir)/$(PROGRAM).6 ; fi
 	-if test ! -d $(man6dir) ; then $(INSTALL) -m 0644 rogue.6 $(DESTDIR)$(mandir)/$(PROGRAM).6 ; fi