xref: /freebsd/contrib/ntp/scripts/update-leap/Makefile.am (revision a466cc55373fc3cf86837f09da729535b57e69a1)
1a25439b6SCy SchubertNULL=
2a25439b6SCy Schubertrun_ag=		cd $(srcdir) &&	env PATH="$(abs_builddir):$(PATH)" PERL5LIB="$(abs_top_srcdir)/scripts/lib" AUTOGEN_DNE_DATE=-D	\
3a25439b6SCy Schubert		autogen -L ../../sntp/include -L ../../sntp/ag-tpl \
4a25439b6SCy Schubert		--writable
5a25439b6SCy Schubertstd_def_list =							\
6a25439b6SCy Schubert	$(top_srcdir)/sntp/include/debug-opt.def		\
7a25439b6SCy Schubert	$(top_srcdir)/sntp/include/autogen-version.def 		\
8a25439b6SCy Schubert	$(top_srcdir)/sntp/include/copyright.def 		\
9a25439b6SCy Schubert	$(top_srcdir)/sntp/include/homerc.def 			\
10a25439b6SCy Schubert	$(top_srcdir)/sntp/include/ntp.lic 			\
11a25439b6SCy Schubert	$(top_srcdir)/sntp/include/version.def			\
12a25439b6SCy Schubert	$(NULL)
13a25439b6SCy Schubert
14a25439b6SCy Schubertbin_SCRIPTS=		$(UPDATE_LEAP_DB)
15a25439b6SCy Schubertsbin_SCRIPTS=		$(UPDATE_LEAP_DS)
16a25439b6SCy Schubertlibexec_SCRIPTS=	$(UPDATE_LEAP_DL)
17a25439b6SCy Schubertnoinst_SCRIPTS=		$(UPDATE_LEAP_NI)
18a25439b6SCy SchubertEXTRA_SCRIPTS=		update-leap
19a25439b6SCy Schubert
20a25439b6SCy Schubertman1_MANS=
21a25439b6SCy Schubertman8_MANS=
22a25439b6SCy Schubertif INSTALL_UPDATE_LEAP
23a25439b6SCy Schubertman_MANS=	update-leap.$(UPDATE_LEAP_MS)
24a25439b6SCy Schubertelse
25a25439b6SCy Schubertnoinst_MANS=	update-leap.$(UPDATE_LEAP_MS)
26a25439b6SCy Schubertendif
27a25439b6SCy Schubert
28a25439b6SCy SchubertEXTRA_DIST =				\
29a25439b6SCy Schubert	invoke-update-leap.menu		\
30a25439b6SCy Schubert	invoke-update-leap.texi		\
31a25439b6SCy Schubert	update-leap-opts.def		\
32a25439b6SCy Schubert	update-leap-opts		\
33a25439b6SCy Schubert	update-leap.1update-leapman	\
34a25439b6SCy Schubert	update-leap.1update-leapmdoc	\
35276da39aSCy Schubert	update-leap.in			\
36a25439b6SCy Schubert	update-leap.man.in		\
37a25439b6SCy Schubert	update-leap.mdoc.in		\
38276da39aSCy Schubert	update-leap.sh			\
39a25439b6SCy Schubert	update-leap.texi		\
40a25439b6SCy Schubert	update-leap.html		\
41a25439b6SCy Schubert	$(NULL)
42a25439b6SCy Schubert
43a25439b6SCy Schuberthtml_DATA = update-leap.html
44a25439b6SCy Schubert
45a25439b6SCy Schubert#CLEANFILES = update-leap.1
46a25439b6SCy SchubertDISTCLEANFILES = config.log $(man_MANS) $(noinst_MANS)
47a25439b6SCy Schubert
48a25439b6SCy Schubertnoinst_DATA =				\
49a25439b6SCy Schubert	invoke-update-leap.menu		\
50a25439b6SCy Schubert	invoke-update-leap.texi		\
51a25439b6SCy Schubert	update-leap.man.in		\
52a25439b6SCy Schubert	update-leap.mdoc.in		\
53a25439b6SCy Schubert	update-leap-opts		\
54a25439b6SCy Schubert	$(NULL)
55a25439b6SCy Schubert
56a25439b6SCy Schubert$(srcdir)/update-leap: $(srcdir)/update-leap-opts
57a25439b6SCy Schubert	@: do-nothing action to avoid default SCCS get
58a25439b6SCy Schubert
59a25439b6SCy Schubert$(srcdir)/update-leap-opts: update-leap-opts.def $(std_def_list)
60*a466cc55SCy Schubert	$(AM_V_GEN)$(run_ag) update-leap-opts.def
61a25439b6SCy Schubert
62a25439b6SCy Schubert### Man
63a25439b6SCy Schubert
64a25439b6SCy Schubert$(srcdir)/update-leap.1update-leapman: $(srcdir)/update-leap-opts.def $(std_def_list)
65*a466cc55SCy Schubert	$(AM_V_GEN)$(run_ag) -DMAN_SECTION=1update-leapman -Tagman-cmd.tpl update-leap-opts.def
66a25439b6SCy Schubert
67a25439b6SCy Schubert$(srcdir)/update-leap.man.in: $(srcdir)/update-leap.1update-leapman $(top_srcdir)/sntp/scripts/mansec2subst.sed
68a25439b6SCy Schubert	sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/update-leap.1update-leapman > $(srcdir)/update-leap.man.in+
69a25439b6SCy Schubert	mv $(srcdir)/update-leap.man.in+ $(srcdir)/update-leap.man.in
70a25439b6SCy Schubert
71a25439b6SCy Schubert### Mdoc
72a25439b6SCy Schubert
73a25439b6SCy Schubert$(srcdir)/update-leap.1update-leapmdoc: $(srcdir)/update-leap-opts.def $(std_def_list)
74*a466cc55SCy Schubert	$(AM_V_GEN)$(run_ag) -DMAN_SECTION=1update-leapmdoc -Tagmdoc-cmd.tpl update-leap-opts.def
75a25439b6SCy Schubert
76a25439b6SCy Schubert$(srcdir)/update-leap.mdoc.in: $(srcdir)/update-leap.1update-leapmdoc $(top_srcdir)/sntp/scripts/mansec2subst.sed
77a25439b6SCy Schubert	sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/update-leap.1update-leapmdoc > $(srcdir)/update-leap.mdoc.in+
78a25439b6SCy Schubert	mv $(srcdir)/update-leap.mdoc.in+ $(srcdir)/update-leap.mdoc.in
79a25439b6SCy Schubert
80a25439b6SCy Schubert### Manpage
81a25439b6SCy Schubert
82a25439b6SCy Schubertupdate-leap.$(UPDATE_LEAP_MS): $(srcdir)/update-leap.$(MANTAGFMT).in $(top_builddir)/config.status
83a25439b6SCy Schubert	$(top_builddir)/config.status --file=update-leap.$(UPDATE_LEAP_MS)+:$(srcdir)/update-leap.$(MANTAGFMT).in
84a25439b6SCy Schubert	mv update-leap.$(UPDATE_LEAP_MS)+ update-leap.$(UPDATE_LEAP_MS)
85a25439b6SCy Schubert
86a25439b6SCy Schubert### Texinfo
87a25439b6SCy Schubert
88a25439b6SCy Schubert$(srcdir)/invoke-update-leap.menu: $(srcdir)/invoke-update-leap.texi
89a25439b6SCy Schubert	@: do-nothing action to avoid default SCCS get, .menu built with .texi
90a25439b6SCy Schubert
91a25439b6SCy Schubert$(srcdir)/invoke-update-leap.texi: $(srcdir)/update-leap-opts.def $(std_def_list)
92*a466cc55SCy Schubert	$(AM_V_GEN)$(run_ag) -Tagtexi-cmd.tpl -DLEVEL=section update-leap-opts.def
93a25439b6SCy Schubert	$(top_srcdir)/scripts/build/check--help $@
94a25439b6SCy Schubert
95a25439b6SCy Schubert### HTML
96a25439b6SCy Schubert
97*a466cc55SCy Schubert$(srcdir)/update-leap.html: $(srcdir)/invoke-update-leap.texi $(srcdir)/update-leap.texi $(top_srcdir)/sntp/include/version.texi
98a25439b6SCy Schubert	cd $(srcdir) && ( makeinfo --force --html --no-split -I ../sntp -o update-leap.html update-leap.texi || true )
99