From 51a0e4c4d8aa871e87d8c8749d35b64ccb669506 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Fri, 16 Mar 2007 14:32:32 +1100 Subject: [PATCH] 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. --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5