install-plugin:
uninstall:
- -rm -f $(DESTDIR)$(mandirsu)/sudo.$(mansectsu) \
+ -rm -f $(DESTDIR)$(docdir) $(DESTDIR)$(mandirsu)/sudo.$(mansectsu) \
$(DESTDIR)$(mandirsu)/sudoedit.$(mansectsu) \
$(DESTDIR)$(mandirsu)/sudo_plugin.$(mansectsu) \
$(DESTDIR)$(mandirsu)/sudoreplay.$(mansectsu) \
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
incdir = $(top_srcdir)/include
+docdir = @docdir@
# For out of tree builds
VPATH = $(devdir):$(srcdir):$(srcdir)/auth
tsgetgrpw.o: $(srcdir)/tsgetgrpw.c $(SUDODEP)
visudo.o: $(srcdir)/visudo.c $(SUDODEP) $(devdir)/gram.h
-install: install-dirs install-plugin install-binaries install-sudoers
+install: install-dirs install-plugin install-binaries install-sudoers install-doc
install-dirs:
$(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(plugindir) \
$(DESTDIR)$(visudodir) $(DESTDIR)$(replaydir) \
- $(DESTDIR)$(sudoersdir)
+ $(DESTDIR)$(sudoersdir) $(DESTDIR)$(docdir)
install-binaries: visudo sudoreplay install-dirs
$(INSTALL) -O $(install_uid) -G $(install_gid) -M 0111 sudoreplay $(DESTDIR)$(replaydir)/sudoreplay
install-includes:
-# XXX - install sudoers2ldif in docdir
install-doc:
+ @LDAP@$(INSTALL) -O $(install_uid) -G $(install_gid) -M 0555 $(srcdir)/sudoers2ldif $(DESTDIR)$(docdir)
install-plugin: sudoers.la install-dirs
$(LIBTOOL) --mode=install --quiet $(INSTALL) sudoers.la $(DESTDIR)$(plugindir)