Imported Upstream version 1.7.4p4
[debian/sudo] / Makefile.in
index 425bbdfecc7ebf98bca6552743b8ecdb3c6fa4e1..0114ca7c697386e5d944c92de2eb1959573a861a 100644 (file)
@@ -159,7 +159,7 @@ DISTFILES = $(SRCS) $(HDRS) ChangeLog HISTORY INSTALL INSTALL.configure \
            mkpkg pathnames.h.in pp sample.pam sample.syslog.conf \
            sample.sudoers schema.ActiveDirectory schema.OpenLDAP \
            schema.iPlanet siglist.in sudo.cat sudo.man.in sudo.pod sudo.pp \
-           sudo_usage.h.in sudoers sudoers.cat sudoers.man.in sudoers.pod \
+           sudo_usage.h.in sudoers.in sudoers.cat sudoers.man.in sudoers.pod \
            sudoers.ldap.cat sudoers.ldap.man.in sudoers.ldap.pod \
            sudoers2ldif sudoreplay.cat sudoreplay.man.in sudoreplay.pod \
            visudo.cat visudo.man.in visudo.pod auth/API sudo.man.pl \
@@ -465,6 +465,9 @@ sudoreplay.man: $(srcdir)/sudoreplay.man.in
 @DEV@LICENSE: $(srcdir)/license.pod
 @DEV@  pod2text -l -i0 $(srcdir)/license.pod | sed '1,2d' > $@
 
+sudoers: $(srcdir)/sudoers.in
+       (cd $(top_builddir) && $(SHELL) config.status --file=plugins/sudoers/$@)
+
 # The 1.7 branch started Jan 18, 2010
 ChangeLog:
        if test -d $(srcdir)/.hg; then \
@@ -497,7 +500,7 @@ install-sudoers: install-dirs
            $(DESTDIR)$(sudoersdir)/sudoers.d
        test -f $(DESTDIR)$(sudoersdir)/sudoers || \
            $(INSTALL) -O $(sudoers_uid) -G $(sudoers_gid) -M $(sudoers_mode) \
-               $(srcdir)/sudoers $(DESTDIR)$(sudoersdir)/sudoers
+               sudoers $(DESTDIR)$(sudoersdir)/sudoers
 
 install-doc: install-dirs ChangeLog
        (cd $(srcdir) && for f in ChangeLog HISTORY LICENSE NEWS README TROUBLESHOOTING UPGRADE sample.*; do $(INSTALL) -O $(install_uid) -G $(install_gid) -M 0444 $$f $(DESTDIR)$(docdir); done)
@@ -521,7 +524,7 @@ mostlyclean: clean
 
 distclean: clean
        -rm -rf Makefile pathnames.h config.h config.status config.cache \
-               config.log libtool sudo_noexec.lo .libs $(GENERATED) \
+               config.log libtool sudoers sudo_noexec.lo .libs $(GENERATED) \
                sudo.man sudoers.man sudoers.ldap.man sudoreplay.man \
                visudo.man sudo_usage.h Makefile.binary