1NULL= 2 3bin_SCRIPTS = $(NTP_WAIT_DB) 4libexec_SCRIPTS = $(NTP_WAIT_DL) 5sbin_SCRIPTS = $(NTP_WAIT_DS) 6 7man1_MANS= 8man8_MANS= 9man_MANS= ntp-wait.$(NTP_WAIT_MS) 10 11run_ag= cd $(srcdir) && env PATH="$(abs_builddir):$(PATH)" PERL5LIB="$(abs_top_srcdir)/scripts/lib" AUTOGEN_DNE_DATE=-D \ 12 autogen -L ../../sntp/include -L ../../sntp/ag-tpl \ 13 --writable 14std_def_list = \ 15 $(top_srcdir)/sntp/include/debug-opt.def \ 16 $(top_srcdir)/sntp/include/autogen-version.def \ 17 $(top_srcdir)/sntp/include/copyright.def \ 18 $(top_srcdir)/sntp/include/homerc.def \ 19 $(top_srcdir)/sntp/include/ntp.lic \ 20 $(top_srcdir)/sntp/include/version.def \ 21 $(NULL) 22 23EXTRA_SCRIPTS = ntp-wait 24 25DISTCLEANFILES = config.log $(man_MANS) 26EXTRA_DIST = \ 27 ntp-wait.in \ 28 ntp-wait.1ntp-waitman \ 29 ntp-wait.1ntp-waitmdoc \ 30 ntp-wait.man.in \ 31 ntp-wait.mdoc.in \ 32 ntp-wait.texi \ 33 ntp-wait.html \ 34 ntp-wait-opts.def \ 35 ntp-wait-opts \ 36 invoke-ntp-wait.texi \ 37 invoke-ntp-wait.menu \ 38 $(NULL) 39 40html_DATA = $(srcdir)/ntp-wait.html 41 42noinst_DATA = \ 43 ntp-wait.1ntp-waitman \ 44 ntp-wait.1ntp-waitmdoc \ 45 ntp-wait.man.in \ 46 ntp-wait.mdoc.in \ 47 ntp-wait.texi \ 48 ntp-wait.html \ 49 ntp-wait-opts.def \ 50 ntp-wait-opts \ 51 invoke-ntp-wait.texi \ 52 invoke-ntp-wait.menu \ 53 $(NULL) 54 55ntp-wait: $(srcdir)/ntp-wait-opts 56 57$(srcdir)/ntp-wait-opts: $(srcdir)/ntp-wait-opts.def $(std_def_list) 58 $(AM_V_GEN)$(run_ag) ntp-wait-opts.def 59 60### Nroff 61 62$(srcdir)/ntp-wait.1ntp-waitman: $(srcdir)/ntp-wait-opts.def $(std_def_list) 63 $(AM_V_GEN)$(run_ag) -DMAN_SECTION=1ntp-waitman -Tagman-cmd.tpl ntp-wait-opts.def 64 65$(srcdir)/ntp-wait.man.in: $(srcdir)/ntp-wait.1ntp-waitman $(top_srcdir)/sntp/scripts/mansec2subst.sed 66 sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/ntp-wait.1ntp-waitman > $(srcdir)/ntp-wait.man.in+ 67 mv $(srcdir)/ntp-wait.man.in+ $(srcdir)/ntp-wait.man.in 68 69### Mdoc 70 71$(srcdir)/ntp-wait.1ntp-waitmdoc: $(srcdir)/ntp-wait-opts.def $(std_def_list) 72 $(AM_V_GEN)$(run_ag) -DMAN_SECTION=1ntp-waitmdoc -Tagmdoc-cmd.tpl ntp-wait-opts.def 73 74$(srcdir)/ntp-wait.mdoc.in: $(srcdir)/ntp-wait.1ntp-waitmdoc $(top_srcdir)/sntp/scripts/mansec2subst.sed 75 sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/ntp-wait.1ntp-waitmdoc > $(srcdir)/ntp-wait.mdoc.in+ 76 mv $(srcdir)/ntp-wait.mdoc.in+ $(srcdir)/ntp-wait.mdoc.in 77 78### Manpage 79 80ntp-wait.$(NTP_WAIT_MS): $(srcdir)/ntp-wait.$(MANTAGFMT).in $(top_builddir)/config.status 81 $(top_builddir)/config.status --file=ntp-wait.$(NTP_WAIT_MS)+:$(srcdir)/ntp-wait.$(MANTAGFMT).in 82 mv ntp-wait.$(NTP_WAIT_MS)+ ntp-wait.$(NTP_WAIT_MS) 83 84### Texinfo 85 86$(srcdir)/invoke-ntp-wait.menu: $(srcdir)/invoke-ntp-wait.texi 87 @: do-nothing action to avoid default SCCS get, .menu built with .texi 88 89$(srcdir)/invoke-ntp-wait.texi: ntp-wait-opts $(srcdir)/ntp-wait-opts.def $(std_def_list) 90 $(AM_V_GEN)$(run_ag) -Tagtexi-cmd.tpl -DLEVEL=section ntp-wait-opts.def 91 $(top_srcdir)/scripts/build/check--help $@ 92 93### HTML 94 95$(srcdir)/ntp-wait.html: $(srcdir)/invoke-ntp-wait.texi $(srcdir)/ntp-wait.texi $(top_srcdir)/sntp/include/version.texi 96 cd $(srcdir) && ( makeinfo --force --html --no-split -I ../sntp -o ntp-wait.html ntp-wait.texi || true ) 97