From 7ebcbf1027c996a22850ee97eac9222c61940414 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 8 Apr 2010 20:08:30 -0400 Subject: [PATCH] Add dev targets for *.man.in and *.cat that don't specfify the $(srcdir) prefix. --- doc/Makefile.in | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/doc/Makefile.in b/doc/Makefile.in index ca61bd0d5..b5e493402 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -54,7 +54,6 @@ DOCS = sudo.man visudo.man sudoers.man sudoers.ldap.man sudoers.man \ VERSION = @PACKAGE_VERSION@ -# XXX - add DEV dependencies to avoid always building .man.in and .cat files all: $(DOCS) .SUFFIXES: .man .cat @@ -63,6 +62,8 @@ all: $(DOCS) @rm -f $@ sed '1s/^/.if n .ll 78n/' $< | $(NROFF) -man > $@ +@DEV@sudo.man.in: $(srcdir)/sudo.man.in + @DEV@$(srcdir)/sudo.man.in: $(srcdir)/sudo.pod @DEV@ @rm -f $(srcdir)/$@ @DEV@ ( cd $(srcdir); mansectsu=`echo @MANSECTSU@|tr A-Z a-z`; mansectform=`echo @MANSECTFORM@|tr A-Z a-z`; sed -n -e '/^=pod/q' -e 's/^/.\\" /p' sudo.pod > $@; pod2man --quotes=none --date="`date '+%B %e, %Y'`" --section=$$mansectsu --release=$(VERSION) --center="MAINTENANCE COMMANDS" sudo.pod | sed -e "s/(5)/($$mansectform)/" -e "s/(8)/($$mansectsu)/" | perl -p sudo.man.pl >> $@ ) @@ -70,8 +71,12 @@ all: $(DOCS) sudo.man: $(srcdir)/sudo.man.in (cd $(top_builddir) && CONFIG_FILES=doc/$@ CONFIG_HEADERS= sh config.status) +@DEV@sudo.cat: $(srcdir)/sudo.cat + @DEV@$(srcdir)/sudo.cat: sudo.man +@DEV@visudo.man.in: $(srcdir)/visudo.man.in + @DEV@$(srcdir)/visudo.man.in: $(srcdir)/visudo.pod @DEV@ @rm -f $(srcdir)/$@ @DEV@ ( cd $(srcdir); mansectsu=`echo @MANSECTSU@|tr A-Z a-z`; mansectform=`echo @MANSECTFORM@|tr A-Z a-z`; sed -n -e '/^=pod/q' -e 's/^/.\\" /p' visudo.pod > $@; pod2man --quotes=none --date="`date '+%B %e, %Y'`" --section=$$mansectsu --release=$(VERSION) --center="MAINTENANCE COMMANDS" visudo.pod | sed -e "s/(5)/($$mansectform)/" -e "s/(8)/($$mansectsu)/" -e 's|\\fI\\f\((CW*\)*I@\([^@]*\)\\fI@|\\fI@\2@|g' >> $@ ) @@ -79,8 +84,12 @@ sudo.man: $(srcdir)/sudo.man.in visudo.man: $(srcdir)/visudo.man.in (cd $(top_builddir) && CONFIG_FILES=doc/$@ CONFIG_HEADERS= sh config.status) +@DEV@visudo.cat: $(srcdir)/visudo.cat + @DEV@$(srcdir)/visudo.cat: visudo.man +@DEV@sudoers.man.in: $(srcdir)/sudoers.man.in + @DEV@$(srcdir)/sudoers.man.in: $(srcdir)/sudoers.pod @DEV@ @rm -f $(srcdir)/$@ @DEV@ ( cd $(srcdir); mansectsu=`echo @MANSECTSU@|tr A-Z a-z`; mansectform=`echo @MANSECTFORM@|tr A-Z a-z`; sed -n -e '/^=pod/q' -e 's/^/.\\" /p' sudoers.pod > $@; pod2man --quotes=none --date="`date '+%B %e, %Y'`" --section=$$mansectform --release=$(VERSION) --center="MAINTENANCE COMMANDS" sudoers.pod | sed -e "s/(5)/($$mansectform)/" -e "s/(8)/($$mansectsu)/" | perl -p sudoers.man.pl >> $@ ) @@ -88,8 +97,12 @@ visudo.man: $(srcdir)/visudo.man.in sudoers.man:: $(srcdir)/sudoers.man.in (cd $(top_builddir) && CONFIG_FILES=doc/$@ CONFIG_HEADERS= sh config.status) +@DEV@sudoers.cat: $(srcdir)/sudoers.cat + @DEV@$(srcdir)/sudoers.cat: sudoers.man +@DEV@sudoers.ldap.man.in: $(srcdir)/sudoers.ldap.man.in + @DEV@$(srcdir)/sudoers.ldap.man.in: $(srcdir)/sudoers.ldap.pod @DEV@ @rm -f $(srcdir)/$@ @DEV@ ( cd $(srcdir); mansectsu=`echo @MANSECTSU@|tr A-Z a-z`; mansectform=`echo @MANSECTFORM@|tr A-Z a-z`; sed -n -e '/^=pod/q' -e 's/^/.\\" /p' sudoers.ldap.pod > $@; pod2man --quotes=none --date="`date '+%B %e, %Y'`" --section=$$mansectform --release=$(VERSION) --center="MAINTENANCE COMMANDS" sudoers.ldap.pod | sed -e "s/(5)/($$mansectform)/" -e "s/(8)/($$mansectsu)/" -e 's|\\fI\\f\((CW*\)*I@\([^@]*\)\\fI@|\\fI@\2@|g' >> $@ ) @@ -97,8 +110,12 @@ sudoers.man:: $(srcdir)/sudoers.man.in sudoers.ldap.man:: $(srcdir)/sudoers.ldap.man.in (cd $(top_builddir) && CONFIG_FILES=doc/$@ CONFIG_HEADERS= sh config.status) +@DEV@sudoers.ldap.cat: $(srcdir)/sudoers.ldap.cat + @DEV@$(srcdir)/sudoers.ldap.cat: sudoers.ldap.man +@DEV@sudoreplay.man.in: $(srcdir)/sudoreplay.man.in + @DEV@$(srcdir)/sudoreplay.man.in: $(srcdir)/sudoreplay.pod @DEV@ @rm -f $(srcdir)/$@ @DEV@ ( cd $(srcdir); mansectsu=`echo @MANSECTSU@|tr A-Z a-z`; mansectform=`echo @MANSECTFORM@|tr A-Z a-z`; sed -n -e '/^=pod/q' -e 's/^/.\\" /p' sudoreplay.pod > $@; pod2man --quotes=none --date="`date '+%B %e, %Y'`" --section=$$mansectsu --release=$(VERSION) --center="MAINTENANCE COMMANDS" sudoreplay.pod | sed -e "s/(5)/($$mansectform)/" -e "s/(8)/($$mansectsu)/" -e 's|\\fI\\f\((CW*\)*I@\([^@]*\)\\fI@|\\fI@\2@|g' >> $@ ) @@ -106,8 +123,12 @@ sudoers.ldap.man:: $(srcdir)/sudoers.ldap.man.in sudoreplay.man:: $(srcdir)/sudoreplay.man.in (cd $(top_builddir) && CONFIG_FILES=doc/$@ CONFIG_HEADERS= sh config.status) +@DEV@sudoreplay.cat: $(srcdir)/sudoreplay.cat + @DEV@$(srcdir)/sudoreplay.cat: sudoreplay.man +@DEV@sudo_plugin.man.in: $(srcdir)/sudo_plugin.man.in + @DEV@$(srcdir)/sudo_plugin.man.in: $(srcdir)/sudo_plugin.pod @DEV@ @rm -f $(srcdir)/$@ @DEV@ ( cd $(srcdir); mansectsu=`echo @MANSECTSU@|tr A-Z a-z`; mansectform=`echo @MANSECTFORM@|tr A-Z a-z`; sed -n -e '/^=pod/q' -e 's/^/.\\" /p' sudo_plugin.pod > $@; pod2man --quotes=none --date="`date '+%B %e, %Y'`" --section=$$mansectsu --release=$(VERSION) --center="MAINTENANCE COMMANDS" sudo_plugin.pod | sed -e "s/(5)/($$mansectform)/" -e "s/(8)/($$mansectsu)/" -e 's|\\fI\\f\((CW*\)*I@\([^@]*\)\\fI@|\\fI@\2@|g' >> $@ ) @@ -115,6 +136,8 @@ sudoreplay.man:: $(srcdir)/sudoreplay.man.in sudo_plugin.man:: $(srcdir)/sudo_plugin.man.in (cd $(top_builddir) && CONFIG_FILES=doc/$@ CONFIG_HEADERS= sh config.status) +@DEV@sudo_plugin.cat: $(srcdir)/sudo_plugin.cat + @DEV@$(srcdir)/sudo_plugin.cat: sudo_plugin.man @DEV@HISTORY: history.pod -- 2.40.0