diff rogue5/Makefile.in @ 47:2a59cf36ae38

rogue5: Add chroot support to the autotools system.
author elwin
date Fri, 07 Oct 2011 21:19:14 +0000
parents 655c317b6237
children c9382913d6df
line wrap: on
line diff
--- a/rogue5/Makefile.in	Fri Oct 07 06:15:48 2011 +0000
+++ b/rogue5/Makefile.in	Fri Oct 07 21:19:14 2011 +0000
@@ -87,7 +87,7 @@
 
 CHMOD=chmod
 
-DESTDIR=
+DESTDIR=@DESTDIR@
 
 prefix=@prefix@
 exec_prefix=@exec_prefix@
@@ -214,14 +214,17 @@
 	    $(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
+	-if test -d $(DESTDIR)$(man6dir) ; then $(INSTALL) -m 0644 rogue.6 $(DESTDIR)$(man6dir)/$(PROGRAM).6 ; fi
+	-if test ! -d $(DESTDIR)$(man6dir) ; then $(INSTALL) -m 0644 rogue.6 $(DESTDIR)$(mandir)/$(PROGRAM).6 ; fi
 	-$(INSTALL) -m 0644 rogue.doc $(DESTDIR)$(docdir)/$(PROGRAM).doc
 	-$(INSTALL) -m 0644 rogue.html $(DESTDIR)$(docdir)/$(PROGRAM).html
 	-$(INSTALL) -m 0644 rogue.cat $(DESTDIR)$(docdir)/$(PROGRAM).cat
 	-$(INSTALL) -m 0644 LICENSE.TXT $(DESTDIR)$(docdir)/LICENSE.TXT
 	-$(INSTALL) -m 0644 rogue.me $(DESTDIR)$(docdir)/$(PROGRAM).me
-	-if test ! -f $(DESTDIR)$(LOCKFILE)  ; then $(INSTALL) -m 0666 test $(DESTDIR)$(LOCKFILE)  ; $(RM) $(DESTDIR)$(LOCKFILE) ; fi
+	-if test "x$(LOCKFILE)" != "x" -a ! -f $(DESTDIR)$(LOCKFILE)  ; then \
+            $(INSTALL) -m 0666 test $(DESTDIR)$(LOCKFILE)  ; \
+            $(RM) $(DESTDIR)$(LOCKFILE) ; \
+         fi
 	-$(RM) test
 
 uninstall: