xref: /freebsd/contrib/ntp/scripts/ntpsweep/Makefile.am (revision a466cc55373fc3cf86837f09da729535b57e69a1)
12b15cb3dSCy SchubertNULL=
22b15cb3dSCy Schubertrun_ag=		cd $(srcdir) &&	env PATH="$(abs_builddir):$(PATH)" PERL5LIB="$(abs_top_srcdir)/scripts/lib" AUTOGEN_DNE_DATE=-D	\
32b15cb3dSCy Schubert		autogen -L ../../sntp/include -L ../../sntp/ag-tpl \
42b15cb3dSCy Schubert		--writable
52b15cb3dSCy Schubertstd_def_list =							\
62b15cb3dSCy Schubert	$(top_srcdir)/sntp/include/debug-opt.def		\
72b15cb3dSCy Schubert	$(top_srcdir)/sntp/include/autogen-version.def 		\
82b15cb3dSCy Schubert	$(top_srcdir)/sntp/include/copyright.def 		\
92b15cb3dSCy Schubert	$(top_srcdir)/sntp/include/homerc.def 			\
102b15cb3dSCy Schubert	$(top_srcdir)/sntp/include/ntp.lic 			\
112b15cb3dSCy Schubert	$(top_srcdir)/sntp/include/version.def			\
122b15cb3dSCy Schubert	$(NULL)
132b15cb3dSCy Schubert
142b15cb3dSCy Schubertbin_SCRIPTS=		$(NTPSWEEP_DB)
152b15cb3dSCy Schubertsbin_SCRIPTS=		$(NTPSWEEP_DS)
162b15cb3dSCy Schubertlibexec_SCRIPTS=	$(NTPSWEEP_DL)
172b15cb3dSCy Schubertnoinst_SCRIPTS=		$(NTPSWEEP_NI)
182b15cb3dSCy SchubertEXTRA_SCRIPTS=		ntpsweep
192b15cb3dSCy Schubert
202b15cb3dSCy Schubertman1_MANS=
212b15cb3dSCy Schubertman8_MANS=
222b15cb3dSCy Schubertif INSTALL_NTPSWEEP
232b15cb3dSCy Schubertman_MANS=	ntpsweep.$(NTPSWEEP_MS)
242b15cb3dSCy Schubertelse
252b15cb3dSCy Schubertnoinst_MANS=	ntpsweep.$(NTPSWEEP_MS)
262b15cb3dSCy Schubertendif
272b15cb3dSCy Schubert
282b15cb3dSCy SchubertEXTRA_DIST =			\
292b15cb3dSCy Schubert	ntpsweep.in		\
302b15cb3dSCy Schubert	ntpsweep.1ntpsweepman	\
312b15cb3dSCy Schubert	ntpsweep.1ntpsweepmdoc	\
322b15cb3dSCy Schubert	ntpsweep.man.in		\
332b15cb3dSCy Schubert	ntpsweep.mdoc.in	\
342b15cb3dSCy Schubert	ntpsweep.texi		\
352b15cb3dSCy Schubert	ntpsweep.html		\
362b15cb3dSCy Schubert	ntpsweep-opts.def	\
372b15cb3dSCy Schubert	ntpsweep-opts		\
382b15cb3dSCy Schubert	invoke-ntpsweep.texi	\
392b15cb3dSCy Schubert	invoke-ntpsweep.menu	\
402b15cb3dSCy Schubert	$(NULL)
412b15cb3dSCy Schubert
422b15cb3dSCy Schuberthtml_DATA = ntpsweep.html
432b15cb3dSCy Schubert
442b15cb3dSCy SchubertCLEANFILES = ntpsweep.1
452b15cb3dSCy SchubertDISTCLEANFILES = config.log $(man_MANS) $(noinst_MANS)
462b15cb3dSCy Schubert
472b15cb3dSCy Schubertnoinst_DATA =			\
482b15cb3dSCy Schubert	ntpsweep.1		\
492b15cb3dSCy Schubert	ntpsweep.1ntpsweepman	\
502b15cb3dSCy Schubert	ntpsweep.1ntpsweepmdoc	\
512b15cb3dSCy Schubert	ntpsweep.man.in		\
522b15cb3dSCy Schubert	ntpsweep.mdoc.in	\
532b15cb3dSCy Schubert	ntpsweep.texi		\
542b15cb3dSCy Schubert	ntpsweep.html		\
552b15cb3dSCy Schubert	ntpsweep-opts.def	\
562b15cb3dSCy Schubert	ntpsweep-opts		\
572b15cb3dSCy Schubert	invoke-ntpsweep.texi	\
582b15cb3dSCy Schubert	invoke-ntpsweep.menu	\
592b15cb3dSCy Schubert	$(NULL)
602b15cb3dSCy Schubert
612b15cb3dSCy Schubertntpsweep: $(srcdir)/ntpsweep-opts
622b15cb3dSCy Schubert
632b15cb3dSCy Schubert$(srcdir)/ntpsweep-opts: ntpsweep-opts.def $(std_def_list)
64*a466cc55SCy Schubert	$(AM_V_GEN)$(run_ag) ntpsweep-opts.def
652b15cb3dSCy Schubert
662b15cb3dSCy Schubert### Nroff
672b15cb3dSCy Schubert
682b15cb3dSCy Schubert$(srcdir)/ntpsweep.1ntpsweepman: ntpsweep-opts.def $(std_def_list)
69*a466cc55SCy Schubert	$(AM_V_GEN)$(run_ag) -DMAN_SECTION=1ntpsweepman -Tagman-cmd.tpl ntpsweep-opts.def
702b15cb3dSCy Schubert
712b15cb3dSCy Schubert$(srcdir)/ntpsweep.man.in: ntpsweep.1ntpsweepman $(top_srcdir)/sntp/scripts/mansec2subst.sed
722b15cb3dSCy Schubert	sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/ntpsweep.1ntpsweepman > $(srcdir)/ntpsweep.man.in+
732b15cb3dSCy Schubert	mv $(srcdir)/ntpsweep.man.in+ $(srcdir)/ntpsweep.man.in
742b15cb3dSCy Schubert
752b15cb3dSCy Schubert### Mdoc
762b15cb3dSCy Schubert
772b15cb3dSCy Schubert$(srcdir)/ntpsweep.1ntpsweepmdoc: ntpsweep-opts.def $(std_def_list)
78*a466cc55SCy Schubert	$(AM_V_GEN)$(run_ag) -DMAN_SECTION=1ntpsweepmdoc -Tagmdoc-cmd.tpl ntpsweep-opts.def
792b15cb3dSCy Schubert
802b15cb3dSCy Schubert$(srcdir)/ntpsweep.mdoc.in: ntpsweep.1ntpsweepmdoc $(top_srcdir)/sntp/scripts/mansec2subst.sed
812b15cb3dSCy Schubert	sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/ntpsweep.1ntpsweepmdoc > $(srcdir)/ntpsweep.mdoc.in+
822b15cb3dSCy Schubert	mv $(srcdir)/ntpsweep.mdoc.in+ $(srcdir)/ntpsweep.mdoc.in
832b15cb3dSCy Schubert
842b15cb3dSCy Schubert### Manpage
852b15cb3dSCy Schubert
862b15cb3dSCy Schubertntpsweep.1: ntpsweep.$(MANTAGFMT).in $(top_builddir)/config.status
872b15cb3dSCy Schubert	$(top_builddir)/config.status --file=ntpsweep.1+:$(srcdir)/ntpsweep.$(MANTAGFMT).in
882b15cb3dSCy Schubert	mv ntpsweep.1+ ntpsweep.1
892b15cb3dSCy Schubert
902b15cb3dSCy Schubert### Texinfo
912b15cb3dSCy Schubert
922b15cb3dSCy Schubert$(srcdir)/invoke-ntpsweep.menu: invoke-ntpsweep.texi
932b15cb3dSCy Schubert	@: do-nothing action to avoid default SCCS get, .menu built with .texi
942b15cb3dSCy Schubert
952b15cb3dSCy Schubert$(srcdir)/invoke-ntpsweep.texi: ntpsweep-opts ntpsweep-opts.def $(std_def_list)
96*a466cc55SCy Schubert	$(AM_V_GEN)$(run_ag) -Tagtexi-cmd.tpl -DLEVEL=section ntpsweep-opts.def
972b15cb3dSCy Schubert	$(top_srcdir)/scripts/build/check--help $@
982b15cb3dSCy Schubert
992b15cb3dSCy Schubert### HTML
1002b15cb3dSCy Schubert
101*a466cc55SCy Schubert$(srcdir)/ntpsweep.html: $(srcdir)/invoke-ntpsweep.texi $(srcdir)/ntpsweep.texi $(top_srcdir)/sntp/include/version.texi
1022b15cb3dSCy Schubert	cd $(srcdir) && ( makeinfo --force --html --no-split -I ../sntp -o ntpsweep.html ntpsweep.texi || true )
103