INSTALL_DATA=@INSTALL_DATA@ $(INSTALL_FLAGS)
prefix=@prefix@
exec_prefix=$(prefix)
+share_prefix=$(prefix)/share
bindir=$(exec_prefix)/bin
-mandir=$(prefix)/man
+mandir=$(share_prefix)/man
man1dir=$(mandir)/man1
man8dir=$(mandir)/man8
sbindir=$(exec_prefix)/sbin
etcdir=/etc
etcsubdir=$(etcdir)/userv
-docdir=$(prefix)/userv
+docdir=$(share_prefix)/doc/userv
TARGETS= daemon client
TARGETS_DOC_PS= spec.ps overview.ps
install: all
$(INSTALL_PROGRAM) -m 755 daemon $(sbindir)/uservd
$(INSTALL_PROGRAM) -m 4755 client $(bindir)/userv
- $(INSTALL) -d -m 2755 $(etcsubdir) \
- $(etcsubdir)/default.d $(etcsubdir)/services.d $(etcsubdir)/override.d
+ set -e; for f in '' /default.d /services.d /override.d; do \
+ $(INSTALL) -d -m 2755 $(etcsubdir)$$f; \
+ done
if test ! -f $(etcsubdir)/system.default; then \
$(INSTALL_DATA) system.default $(etcsubdir); fi
if test ! -f $(etcsubdir)/system.override; then \