Makefile.am revision 285612
160525SobrienNULL=
277319Sobrienrun_ag=		cd $(srcdir) &&	env PATH="$(abs_builddir):$(PATH)" PERL5LIB="$(abs_top_srcdir)/scripts/lib" AUTOGEN_DNE_DATE=-D	\
377319Sobrien		autogen -L ../../sntp/include -L ../../sntp/ag-tpl \
433965Sjdp		--writable
533965Sjdpstd_def_list =							\
633965Sjdp	$(top_srcdir)/sntp/include/debug-opt.def		\
733965Sjdp	$(top_srcdir)/sntp/include/autogen-version.def 		\
833965Sjdp	$(top_srcdir)/sntp/include/copyright.def 		\
989872Sobrien	$(top_srcdir)/sntp/include/homerc.def 			\
1089872Sobrien	$(top_srcdir)/sntp/include/ntp.lic 			\
1189872Sobrien	$(top_srcdir)/sntp/include/version.def			\
1289872Sobrien	$(NULL)
1389872Sobrien
1433965Sjdpbin_SCRIPTS=		$(NTPSWEEP_DB)
1533965Sjdpsbin_SCRIPTS=		$(NTPSWEEP_DS)
1633965Sjdplibexec_SCRIPTS=	$(NTPSWEEP_DL)
1733965Sjdpnoinst_SCRIPTS=		$(NTPSWEEP_NI)
1891055SobrienEXTRA_SCRIPTS=		ntpsweep
19130565Sobrien
2033965Sjdpman1_MANS=
2133965Sjdpman8_MANS=
2233965Sjdpif INSTALL_NTPSWEEP
2333965Sjdpman_MANS=	ntpsweep.$(NTPSWEEP_MS)
2433965Sjdpelse
2533965Sjdpnoinst_MANS=	ntpsweep.$(NTPSWEEP_MS)
2633965Sjdpendif
2733965Sjdp
2833965SjdpEXTRA_DIST =			\
2933965Sjdp	ntpsweep.in		\
3033965Sjdp	ntpsweep.1ntpsweepman	\
3133965Sjdp	ntpsweep.1ntpsweepmdoc	\
3233965Sjdp	ntpsweep.man.in		\
3333965Sjdp	ntpsweep.mdoc.in	\
3433965Sjdp	ntpsweep.texi		\
3533965Sjdp	ntpsweep.html		\
3633965Sjdp	ntpsweep-opts.def	\
3733965Sjdp	ntpsweep-opts		\
3833965Sjdp	invoke-ntpsweep.texi	\
3933965Sjdp	invoke-ntpsweep.menu	\
4033965Sjdp	$(NULL)
4133965Sjdp
4233965Sjdphtml_DATA = ntpsweep.html
4378841Sobrien
4489872SobrienCLEANFILES = ntpsweep.1
45130565SobrienDISTCLEANFILES = config.log $(man_MANS) $(noinst_MANS)
4633965Sjdp
4733965Sjdpnoinst_DATA =			\
4833965Sjdp	ntpsweep.1		\
4933965Sjdp	ntpsweep.1ntpsweepman	\
5033965Sjdp	ntpsweep.1ntpsweepmdoc	\
5133965Sjdp	ntpsweep.man.in		\
5233965Sjdp	ntpsweep.mdoc.in	\
5333965Sjdp	ntpsweep.texi		\
5477319Sobrien	ntpsweep.html		\
5577319Sobrien	ntpsweep-opts.def	\
56107499Sobrien	ntpsweep-opts		\
5777319Sobrien	invoke-ntpsweep.texi	\
5833965Sjdp	invoke-ntpsweep.menu	\
59130565Sobrien	$(NULL)
60130565Sobrien
61130565Sobrienntpsweep: $(srcdir)/ntpsweep-opts
62130565Sobrien
63130565Sobrien$(srcdir)/ntpsweep-opts: ntpsweep-opts.def $(std_def_list)
64130565Sobrien	$(run_ag) ntpsweep-opts.def
65130565Sobrien
6633965Sjdp### Nroff
6777319Sobrien
6877319Sobrien$(srcdir)/ntpsweep.1ntpsweepman: ntpsweep-opts.def $(std_def_list)
6977319Sobrien	$(run_ag) -DMAN_SECTION=1ntpsweepman -Tagman-cmd.tpl ntpsweep-opts.def
7077319Sobrien
7177319Sobrien$(srcdir)/ntpsweep.man.in: ntpsweep.1ntpsweepman $(top_srcdir)/sntp/scripts/mansec2subst.sed
7277319Sobrien	sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/ntpsweep.1ntpsweepman > $(srcdir)/ntpsweep.man.in+
7377319Sobrien	mv $(srcdir)/ntpsweep.man.in+ $(srcdir)/ntpsweep.man.in
7477319Sobrien
7577319Sobrien### Mdoc
7677319Sobrien
7777319Sobrien$(srcdir)/ntpsweep.1ntpsweepmdoc: ntpsweep-opts.def $(std_def_list)
7877319Sobrien	$(run_ag) -DMAN_SECTION=1ntpsweepmdoc -Tagmdoc-cmd.tpl ntpsweep-opts.def
7977319Sobrien
8077319Sobrien$(srcdir)/ntpsweep.mdoc.in: ntpsweep.1ntpsweepmdoc $(top_srcdir)/sntp/scripts/mansec2subst.sed
8177319Sobrien	sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/ntpsweep.1ntpsweepmdoc > $(srcdir)/ntpsweep.mdoc.in+
8277319Sobrien	mv $(srcdir)/ntpsweep.mdoc.in+ $(srcdir)/ntpsweep.mdoc.in
8377319Sobrien
8433965Sjdp### Manpage
85130565Sobrien
8633965Sjdpntpsweep.1: ntpsweep.$(MANTAGFMT).in $(top_builddir)/config.status
87130565Sobrien	$(top_builddir)/config.status --file=ntpsweep.1+:$(srcdir)/ntpsweep.$(MANTAGFMT).in
88130565Sobrien	mv ntpsweep.1+ ntpsweep.1
89130565Sobrien
9033965Sjdp### Texinfo
9133965Sjdp
9277319Sobrien$(srcdir)/invoke-ntpsweep.menu: invoke-ntpsweep.texi
9377319Sobrien	@: do-nothing action to avoid default SCCS get, .menu built with .texi
9433965Sjdp
95130565Sobrien$(srcdir)/invoke-ntpsweep.texi: ntpsweep-opts ntpsweep-opts.def $(std_def_list)
9677319Sobrien	$(run_ag) -Tagtexi-cmd.tpl -DLEVEL=section ntpsweep-opts.def
97130565Sobrien	$(top_srcdir)/scripts/build/check--help $@
9877319Sobrien
99130565Sobrien### HTML
100130565Sobrien
101130565Sobrien$(srcdir)/ntpsweep.html: invoke-ntpsweep.menu invoke-ntpsweep.texi ntpsweep.texi $(top_srcdir)/sntp/include/version.texi
102130565Sobrien	cd $(srcdir) && ( makeinfo --force --html --no-split -I ../sntp -o ntpsweep.html ntpsweep.texi || true )
103130565Sobrien