- $(INSTALL_PROGRAM) -s -o root -g root -m 755 daemon $(sbindir)/uservd
- $(INSTALL_PROGRAM) -s -o root -g root -m 4755 client $(bindir)/userv
- $(INSTALL) -d -o root -g root -m 2755 $(etcsubdir)
- if ! test -f $(etcsubdir)/system.default; then \
- $(INSTALL_DATA) -o root -g root system.default $(etcsubdir); fi
- if ! test -f $(etcsubdir)/system.override; then \
- $(INSTALL_DATA) -o root -g root system.override $(etcsubdir); fi
+ $(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
+ if test ! -f $(etcsubdir)/system.default; then
+ $(INSTALL_DATA) system.default $(etcsubdir); fi
+ if test ! -f $(etcsubdir)/system.override; then \
+ $(INSTALL_DATA) system.override $(etcsubdir); fi
+
+install-strip:
+ $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
+
+install-doc: $(TARGETS_DOC)
+ $(INSTALL) -d -m 2755 $(docdir) $(docdir)/spec.html
+ $(INSTALL_DATA) -m 644 $(TARGETS_DOC_PS) $(docdir)/.
+ $(INSTALL_DATA) -m 644 spec.html/*.html $(docdir)/spec.html/.
+
+uninstall:
+ rm -f $(bindir)/userv $(sbindir)/uservd