From: Neil Brown Date: Fri, 16 Mar 2007 03:32:32 +0000 (+1100) Subject: Allow 'make install' to be run as non-root. X-Git-Tag: nfs-utils-1-1-0-rc1~69 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=51a0e4c4d8aa871e87d8c8749d35b64ccb669506;p=nfs-utils.git Allow 'make install' to be run as non-root. Providing write access to the DESTDIR is ok, we shouldn't fail the install just because 'chown' fails. --- diff --git a/Makefile.am b/Makefile.am index c04e9de..ec8e832 100644 --- a/Makefile.am +++ b/Makefile.am @@ -50,7 +50,7 @@ install-data-hook: mkdir -p $(DESTDIR)$(statedir)/sm $(DESTDIR)$(statedir)/sm.bak touch $(DESTDIR)$(statedir)/state chmod go-rwx $(DESTDIR)$(statedir)/sm $(DESTDIR)$(statedir)/sm.bak $(DESTDIR)$(statedir)/state - chown $(statduser) $(DESTDIR)$(statedir)/sm $(DESTDIR)$(statedir)/sm.bak $(DESTDIR)$(statedir)/state + -chown $(statduser) $(DESTDIR)$(statedir)/sm $(DESTDIR)$(statedir)/sm.bak $(DESTDIR)$(statedir)/state uninstall-hook: rm $(DESTDIR)$(statedir)/xtab