1NULL= 2run_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 \ 4 --writable 5std_def_list = \ 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 \ 12 $(NULL) 13 14bin_SCRIPTS= $(UPDATE_LEAP_DB) 15sbin_SCRIPTS= $(UPDATE_LEAP_DS) 16libexec_SCRIPTS= $(UPDATE_LEAP_DL) 17noinst_SCRIPTS= $(UPDATE_LEAP_NI) 18EXTRA_SCRIPTS= update-leap 19 20man1_MANS= 21man8_MANS= 22if INSTALL_UPDATE_LEAP 23man_MANS= update-leap.$(UPDATE_LEAP_MS) 24else 25noinst_MANS= update-leap.$(UPDATE_LEAP_MS) 26endif 27 28EXTRA_DIST = \ 29 invoke-update-leap.menu \ 30 invoke-update-leap.texi \ 31 update-leap-opts.def \ 32 update-leap-opts \ 33 update-leap.1update-leapman \ 34 update-leap.1update-leapmdoc \ 35 update-leap.in \ 36 update-leap.man.in \ 37 update-leap.mdoc.in \ 38 update-leap.sh \ 39 update-leap.texi \ 40 update-leap.html \ 41 $(NULL) 42 43html_DATA = update-leap.html 44 45#CLEANFILES = update-leap.1 46DISTCLEANFILES = config.log $(man_MANS) $(noinst_MANS) 47 48noinst_DATA = \ 49 invoke-update-leap.menu \ 50 invoke-update-leap.texi \ 51 update-leap.man.in \ 52 update-leap.mdoc.in \ 53 update-leap-opts \ 54 $(NULL) 55 56$(srcdir)/update-leap: $(srcdir)/update-leap-opts 57 @: do-nothing action to avoid default SCCS get 58 59$(srcdir)/update-leap-opts: update-leap-opts.def $(std_def_list) 60 $(AM_V_GEN)$(run_ag) update-leap-opts.def 61 62### Man 63 64$(srcdir)/update-leap.1update-leapman: $(srcdir)/update-leap-opts.def $(std_def_list) 65 $(AM_V_GEN)$(run_ag) -DMAN_SECTION=1update-leapman -Tagman-cmd.tpl update-leap-opts.def 66 67$(srcdir)/update-leap.man.in: $(srcdir)/update-leap.1update-leapman $(top_srcdir)/sntp/scripts/mansec2subst.sed 68 sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/update-leap.1update-leapman > $(srcdir)/update-leap.man.in+ 69 mv $(srcdir)/update-leap.man.in+ $(srcdir)/update-leap.man.in 70 71### Mdoc 72 73$(srcdir)/update-leap.1update-leapmdoc: $(srcdir)/update-leap-opts.def $(std_def_list) 74 $(AM_V_GEN)$(run_ag) -DMAN_SECTION=1update-leapmdoc -Tagmdoc-cmd.tpl update-leap-opts.def 75 76$(srcdir)/update-leap.mdoc.in: $(srcdir)/update-leap.1update-leapmdoc $(top_srcdir)/sntp/scripts/mansec2subst.sed 77 sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/update-leap.1update-leapmdoc > $(srcdir)/update-leap.mdoc.in+ 78 mv $(srcdir)/update-leap.mdoc.in+ $(srcdir)/update-leap.mdoc.in 79 80### Manpage 81 82update-leap.$(UPDATE_LEAP_MS): $(srcdir)/update-leap.$(MANTAGFMT).in $(top_builddir)/config.status 83 $(top_builddir)/config.status --file=update-leap.$(UPDATE_LEAP_MS)+:$(srcdir)/update-leap.$(MANTAGFMT).in 84 mv update-leap.$(UPDATE_LEAP_MS)+ update-leap.$(UPDATE_LEAP_MS) 85 86### Texinfo 87 88$(srcdir)/invoke-update-leap.menu: $(srcdir)/invoke-update-leap.texi 89 @: do-nothing action to avoid default SCCS get, .menu built with .texi 90 91$(srcdir)/invoke-update-leap.texi: $(srcdir)/update-leap-opts.def $(std_def_list) 92 $(AM_V_GEN)$(run_ag) -Tagtexi-cmd.tpl -DLEVEL=section update-leap-opts.def 93 $(top_srcdir)/scripts/build/check--help $@ 94 95### HTML 96 97$(srcdir)/update-leap.html: $(srcdir)/invoke-update-leap.texi $(srcdir)/update-leap.texi $(top_srcdir)/sntp/include/version.texi 98 cd $(srcdir) && ( makeinfo --force --html --no-split -I ../sntp -o update-leap.html update-leap.texi || true ) 99