Allow 'make install' to be run as non-root.
[nfs-utils.git] / Makefile.am
index ff6f093..ec8e832 100644 (file)
@@ -35,25 +35,12 @@ EXTRA_DIST = \
        debian/nhfsstone.prerm \
        debian/rules \
        \
+       aclocal/bsdsignals.m4 \
        aclocal/nfs-utils.m4 \
        aclocal/kerberos5.m4 \
-       aclocal/tcp-wrappers.m4 \
-       \
-       support/rpc/include/rpc/auth_gss.h \
-       support/rpc/include/rpc/auth.h \
-       support/rpc/include/rpc/auth_unix.h \
-       support/rpc/include/rpc/clnt.h \
-       support/rpc/include/rpc/pmap_clnt.h \
-       support/rpc/include/rpc/pmap_prot.h \
-       support/rpc/include/rpc/pmap_rmt.h \
-       support/rpc/include/rpc/rpc_des.h \
-       support/rpc/include/rpc/rpc.h \
-       support/rpc/include/rpc/rpc_msg.h \
-       support/rpc/include/rpc/svc_auth.h \
-       support/rpc/include/rpc/svc.h \
-       support/rpc/include/rpc/types.h \
-       support/rpc/include/rpc/xdr.h
+       aclocal/tcp-wrappers.m4
 
+ACLOCAL_AMFLAGS = -I aclocal
 
 install-data-hook:
        if [ ! -d $(DESTDIR)$(statedir) ]; then mkdir -p $(DESTDIR)$(statedir); fi
@@ -63,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