]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
don't abort instal for non-root users
authorAndre Noll <maan@congo.fml.local>
Sun, 13 Aug 2006 13:17:33 +0000 (15:17 +0200)
committerAndre Noll <maan@congo.fml.local>
Sun, 13 Aug 2006 13:17:33 +0000 (15:17 +0200)
It's not fatal if the audiod socket directory /var/paraslash
can not be created. Just ignore errors for that directory only.

Makefile.in

index 6572235cb982a1eb300ba6d3dcde82aed0e54584..b1d56ca4d6bd32c85e847a037b0c170c896b3def 100644 (file)
@@ -229,14 +229,15 @@ maintainer-clean: distclean
 
 install: all
        umask 022 && \
-       mkdir -p $(BINDIR) $(VARDIR) && \
+       mkdir -p $(BINDIR) && \
        $(install_sh) -s -m 755 $(BINARIES) $(BINDIR) && \
        mkdir -p $(FONTDIR) && \
        $(install_sh) -m 644 $(FONTS) $(FONTDIR) && \
        mkdir -p $(PICDIR) && \
        $(install_sh) -m 644 $(PICS) $(PICDIR) && \
        mkdir -p $(MANDIR) && \
-       $(install_sh) -m 644 $(MANS) $(MANDIR)
+       $(install_sh) -m 644 $(MANS) $(MANDIR) \
+       mkdir -p $(VARDIR) > /dev/null 2>&1 || exit 0
 
 @PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.bz2: $(tarball_add) doc
        rm -f $(tarball_pfx).tar.bz2