2 run_ag= cd $(srcdir) && env PATH="$(abs_builddir):$(PATH)" PERL5LIB="$(abs_top_srcdir)/scripts/lib" AUTOGEN_DNE_DATE=-D \
3 autogen -L ../../sntp/include -L ../../sntp/ag-tpl \
6 $(top_srcdir)/sntp/include/debug-opt.def \
7 $(top_srcdir)/sntp/include/autogen-version.def \
8 $(top_srcdir)/sntp/include/copyright.def \
9 $(top_srcdir)/sntp/include/homerc.def \
10 $(top_srcdir)/sntp/include/ntp.lic \
11 $(top_srcdir)/sntp/include/version.def \
14 bin_SCRIPTS= $(NTPSWEEP_DB)
15 sbin_SCRIPTS= $(NTPSWEEP_DS)
16 libexec_SCRIPTS= $(NTPSWEEP_DL)
17 noinst_SCRIPTS= $(NTPSWEEP_NI)
18 EXTRA_SCRIPTS= ntpsweep
23 man_MANS= ntpsweep.$(NTPSWEEP_MS)
25 noinst_MANS= ntpsweep.$(NTPSWEEP_MS)
30 ntpsweep.1ntpsweepman \
31 ntpsweep.1ntpsweepmdoc \
38 invoke-ntpsweep.texi \
39 invoke-ntpsweep.menu \
42 html_DATA = ntpsweep.html
44 CLEANFILES = ntpsweep.1
45 DISTCLEANFILES = config.log $(man_MANS) $(noinst_MANS)
49 ntpsweep.1ntpsweepman \
50 ntpsweep.1ntpsweepmdoc \
57 invoke-ntpsweep.texi \
58 invoke-ntpsweep.menu \
61 ntpsweep: $(srcdir)/ntpsweep-opts
63 $(srcdir)/ntpsweep-opts: ntpsweep-opts.def $(std_def_list)
64 $(run_ag) ntpsweep-opts.def
68 $(srcdir)/ntpsweep.1ntpsweepman: ntpsweep-opts.def $(std_def_list)
69 $(run_ag) -DMAN_SECTION=1ntpsweepman -Tagman-cmd.tpl ntpsweep-opts.def
71 $(srcdir)/ntpsweep.man.in: ntpsweep.1ntpsweepman $(top_srcdir)/sntp/scripts/mansec2subst.sed
72 sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/ntpsweep.1ntpsweepman > $(srcdir)/ntpsweep.man.in+
73 mv $(srcdir)/ntpsweep.man.in+ $(srcdir)/ntpsweep.man.in
77 $(srcdir)/ntpsweep.1ntpsweepmdoc: ntpsweep-opts.def $(std_def_list)
78 $(run_ag) -DMAN_SECTION=1ntpsweepmdoc -Tagmdoc-cmd.tpl ntpsweep-opts.def
80 $(srcdir)/ntpsweep.mdoc.in: ntpsweep.1ntpsweepmdoc $(top_srcdir)/sntp/scripts/mansec2subst.sed
81 sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/ntpsweep.1ntpsweepmdoc > $(srcdir)/ntpsweep.mdoc.in+
82 mv $(srcdir)/ntpsweep.mdoc.in+ $(srcdir)/ntpsweep.mdoc.in
86 ntpsweep.1: ntpsweep.$(MANTAGFMT).in $(top_builddir)/config.status
87 $(top_builddir)/config.status --file=ntpsweep.1+:$(srcdir)/ntpsweep.$(MANTAGFMT).in
88 mv ntpsweep.1+ ntpsweep.1
92 $(srcdir)/invoke-ntpsweep.menu: invoke-ntpsweep.texi
93 @: do-nothing action to avoid default SCCS get, .menu built with .texi
95 $(srcdir)/invoke-ntpsweep.texi: ntpsweep-opts ntpsweep-opts.def $(std_def_list)
96 $(run_ag) -Tagtexi-cmd.tpl -DLEVEL=section ntpsweep-opts.def
97 $(top_srcdir)/scripts/build/check--help $@
101 $(srcdir)/ntpsweep.html: invoke-ntpsweep.menu invoke-ntpsweep.texi ntpsweep.texi $(top_srcdir)/sntp/include/version.texi
102 cd $(srcdir) && ( makeinfo --force --html --no-split -I ../sntp -o ntpsweep.html ntpsweep.texi || true )