1290001SglebiusNULL=
2182007Sroberto
3290001Sglebiusbin_PROGRAMS=	$(NTPD_DB) $(NTPDSIM_DB)
4290001Sglebiuslibexec_PROGRAMS=	$(NTPD_DL) $(NTPDSIM_DL)
5290001Sglebiussbin_PROGRAMS=	$(NTPD_DS) $(NTPDSIM_DS)
6182007Sroberto
7182007Srobertonoinst_LIBRARIES=	libntpd.a
8182007Sroberto
9290001SglebiusAM_CFLAGS = $(CFLAGS_NTP)
10290001Sglebius
11290001SglebiusAM_CPPFLAGS  = $(NTP_INCS)
12290001SglebiusAM_CPPFLAGS += $(LIBOPTS_CFLAGS)
13290001SglebiusAM_CPPFLAGS += $(CPPFLAGS_NTP)
14290001Sglebius
15290001SglebiusAM_LDFLAGS = $(LDFLAGS_NTP)
16290001Sglebius
17132451Sroberto# LDADD might need RESLIB and ADJLIB.
18290001SglebiusLDADD = version.o libntpd.a $(LIBPARSE)
19290001SglebiusAM_YFLAGS = -d -t -r all
20182007Sroberto
21290001Sglebiusif SAVECONFIG_ENABLED
22290001Sglebiusif NTP_CROSSCOMPILE
23290001SglebiusCHECK_SAVECONFIG=
24290001Sglebiuselse
25290001SglebiusCHECK_SAVECONFIG= check-saveconfig
26290001Sglebiusendif
27290001Sglebiuselse !SAVECONFIG_ENABLED
28290001SglebiusCHECK_SAVECONFIG=
29290001Sglebiusendif
30182007Sroberto
31290001Sglebius#
32290001Sglebius# VPHACK and VPHACK_AFTER are enabled on non-GNU makes (such as
33290001Sglebius# BSD make) to work around issues specific to compiling
34290001Sglebius# ntp_parser.y into ntp_parser.h and ntp_parser.c in a VPATH
35290001Sglebius# configuration where we would like (for a change) the output
36290001Sglebius# files ntp_parser.[ch] to be placed in the source directory,
37290001Sglebius# as opposed to the build directory.  This allows a single
38290001Sglebius# host of a flock configured with Bison to update ntp_parser.[ch]
39290001Sglebius# used by the rest.
40290001Sglebius#
41182007Sroberto
42290001Sglebiusif VPATH_HACK
43290001SglebiusVPHACK=	vphack
44290001SglebiusVPHACK_AFTER= vphack_after
45290001Sglebiuselse
46290001SglebiusVPHACK=
47290001SglebiusVPHACK_AFTER=
48290001Sglebiusendif
49290001Sglebius
50290001Sglebiusvphack:
51290001Sglebius	test -e ntp_parser.c || ln -s $(srcdir)/ntp_parser.c .
52290001Sglebius	test -e ntp_parser.h || ln -s $(srcdir)/ntp_parser.h .
53290001Sglebius
54290001Sglebius#
55290001Sglebius# ylwrap script which invokes Bison replaces ntp_parser.h
56290001Sglebius# symlink with the updated file, when ntp_parser.h changes.
57290001Sglebius# vphack_after detects this and copies the updated file to srcdir
58290001Sglebius# and re-creates the ntp_parser.h symlink in its place.
59290001Sglebius#
60290001Sglebius
61290001Sglebiusvphack_after:
62290001Sglebius	test -L ntp_parser.h || ( \
63290001Sglebius		mv ntp_parser.h $(srcdir)/ntp_parser.h && \
64290001Sglebius		ln -s $(srcdir)/ntp_parser.h . \
65290001Sglebius		)
66290001Sglebius
67290001Sglebius# BUILT_SOURCES which should also be in EXTRA_DIST
68290001SglebiusB_S_DIST=			\
69290001Sglebius	$(srcdir)/ntpd-opts.c	\
70290001Sglebius	$(srcdir)/ntpd-opts.h	\
71290001Sglebius	$(NULL)
72290001Sglebius
73290001SglebiusBUILT_SOURCES=		\
74290001Sglebius	$(VPHACK)	\
75290001Sglebius	$(LIBPARSE)	\
76290001Sglebius	ntp_parser.c	\
77290001Sglebius	ntp_parser.h	\
78290001Sglebius	$(VPHACK_AFTER)	\
79290001Sglebius	$(B_S_DIST)	\
80290001Sglebius	$(NULL)
81290001Sglebius
82290001Sglebiusman1_MANS=
83290001Sglebiusman5_MANS=	ntp.conf.5 ntp.keys.5
84290001Sglebiusman8_MANS=
85290001Sglebiusman_MANS=	ntpd.$(NTPD_MS)
86290001Sglebius
87290001Sglebius# ntpdsim.1 is a remnant along with all the ntpdsim-opts.* files, the
88290001Sglebius# simulator currently uses ntpd-opts.[ch].  This also means there is no
89290001Sglebius# longer a reason to have ntpdbase-opts.def split off of ntpd-opts.def.
90290001Sglebius
91290001SglebiusLDADD_NTPD_COMMON  = $(LDADD_LIBNTP) $(LIBOPTS_LDADD) $(PTHREAD_LIBS)
92290001SglebiusLDADD_NTPD_COMMON += $(LIBM) $(LDADD_NTP) $(LSCF)
93290001Sglebiusntpd_LDADD = $(LDADD) ../libntp/libntp.a $(LDADD_NTPD_COMMON) $(LDADD_LIBUTIL)
94290001Sglebiusntpdsim_LDADD = $(LDADD) ../libntp/libntpsim.a $(LDADD_NTPD_COMMON)
95290001Sglebiusntpdsim_CPPFLAGS = $(AM_CPPFLAGS) -DSIM
96290001Sglebiuscheck_y2k_LDADD = $(LDADD) ../libntp/libntp.a $(LDADD_LIBNTP) $(LIBM) $(LDADD_LIBNTP) $(PTHREAD_LIBS)
97290001Sglebius## we don't want $(LDADD) in keyword_gen_LDADD
98290001Sglebiuskeyword_gen_LDADD = ../libntp/libntp.a $(LDADD_LIBNTP) $(LIBM) $(PTHREAD_LIBS)
99290001Sglebius
100290001SglebiusDISTCLEANFILES =		\
101290001Sglebius	keyword-gen		\
102290001Sglebius	.version		\
103290001Sglebius	version.c		\
104290001Sglebius	config.log		\
105290001Sglebius	$(man5_MANS)		\
106290001Sglebius	$(man_MANS)		\
107290001Sglebius	$(NULL)
108290001Sglebius
109290001SglebiusCLEANFILES =			\
110290001Sglebius	check-saveconfig	\
111290001Sglebius	compsave.conf		\
112290001Sglebius	k-g-u-submake		\
113290001Sglebius	$(EXTRA_PROGRAMS)	\
114290001Sglebius	$(NULL)
115290001Sglebius
116290001SglebiusEXTRA_DIST =			\
117290001Sglebius	complete.conf.in	\
118290001Sglebius	invoke-ntp.conf.menu	\
119290001Sglebius	invoke-ntp.conf.texi	\
120290001Sglebius	invoke-ntp.keys.menu	\
121290001Sglebius	invoke-ntp.keys.texi	\
122290001Sglebius	invoke-ntpd.menu	\
123290001Sglebius	invoke-ntpd.texi	\
124290001Sglebius	keyword-gen-utd		\
125290001Sglebius	ntp.conf.5man		\
126290001Sglebius	ntp.conf.5mdoc		\
127290001Sglebius	ntp.conf.def		\
128290001Sglebius	ntp.conf.man.in		\
129290001Sglebius	ntp.conf.mdoc.in	\
130290001Sglebius	ntp.conf.html		\
131290001Sglebius	ntp.conf.texi		\
132290001Sglebius	ntp.keys.5man		\
133290001Sglebius	ntp.keys.5mdoc		\
134290001Sglebius	ntp.keys.def		\
135290001Sglebius	ntp.keys.man.in		\
136290001Sglebius	ntp.keys.mdoc.in	\
137290001Sglebius	ntp.keys.html		\
138290001Sglebius	ntp.keys.texi		\
139290001Sglebius	ntpd-opts.def		\
140290001Sglebius	ntpd.1ntpdman		\
141290001Sglebius	ntpd.1ntpdmdoc		\
142290001Sglebius	ntpd.man.in		\
143290001Sglebius	ntpd.mdoc.in		\
144290001Sglebius	ntpd.html		\
145290001Sglebius	ntpd.texi		\
146290001Sglebius	ntpdbase-opts.def	\
147182007Sroberto	refclock_msfees.c	\
148290001Sglebius	$(B_S_DIST)		\
149290001Sglebius	$(NULL)
150290001Sglebius
15154359Sroberto###							Y2Kfixes
15254359Srobertocheck_PROGRAMS = @MAKE_CHECK_Y2K@
153290001SglebiusEXTRA_PROGRAMS = check_y2k keyword-gen ntpd ntpdsim
15454359Sroberto
155290001Sglebiushtml_DATA=				\
156290001Sglebius	$(srcdir)/ntp.conf.html		\
157290001Sglebius	$(srcdir)/ntp.keys.html		\
158290001Sglebius	$(srcdir)/ntpd.html		\
159290001Sglebius	$(NULL)
16054359Sroberto
161290001Sglebiusnoinst_DATA =				\
162290001Sglebius	$(srcdir)/invoke-ntp.conf.menu	\
163290001Sglebius	$(srcdir)/invoke-ntp.conf.texi	\
164290001Sglebius	$(srcdir)/invoke-ntp.keys.menu	\
165290001Sglebius	$(srcdir)/invoke-ntp.keys.texi	\
166290001Sglebius	$(srcdir)/invoke-ntpd.menu	\
167290001Sglebius	$(srcdir)/invoke-ntpd.texi	\
168290001Sglebius	$(srcdir)/ntp.conf.man.in	\
169290001Sglebius	$(srcdir)/ntp.conf.mdoc.in	\
170290001Sglebius	$(srcdir)/ntp.keys.man.in	\
171290001Sglebius	$(srcdir)/ntp.keys.mdoc.in	\
172290001Sglebius	$(srcdir)/ntpd.man.in		\
173290001Sglebius	$(srcdir)/ntpd.mdoc.in		\
174290001Sglebius	$(NULL)
17554359Sroberto
176290001Sglebiusnoinst_HEADERS =			\
177290001Sglebius	declcond.h			\
178290001Sglebius	ntp_leapsec.h			\
179290001Sglebius	$(NULL)
180290001Sglebius
181290001Sglebiusinstall-data-local: install-html
182290001Sglebius
183290001Sglebiusrun_ag=		cd $(srcdir) &&	env PATH="$(abs_builddir):$(PATH)" AUTOGEN_DNE_DATE=-D	\
184290001Sglebius		autogen -L ../sntp/include -L ../sntp/ag-tpl --writable
185290001Sglebiusstd_def_list =							\
186290001Sglebius	$(top_srcdir)/sntp/include/debug-opt.def		\
187290001Sglebius	$(top_srcdir)/sntp/include/autogen-version.def		\
188290001Sglebius	$(top_srcdir)/sntp/include/copyright.def		\
189290001Sglebius	$(top_srcdir)/sntp/include/homerc.def			\
190290001Sglebius	$(top_srcdir)/sntp/include/ntp.lic			\
191290001Sglebius	$(top_srcdir)/sntp/include/version.def			\
192290001Sglebius	$(NULL)
193290001Sglebius
194290001Sglebiuscheck-local: $(MAKE_CHECK_Y2K) $(CHECK_SAVECONFIG)
195290001Sglebius	test -z "$(MAKE_CHECK_Y2K)" || ./$(MAKE_CHECK_Y2K)
196290001Sglebius
197290001Sglebiusntpd_SOURCES =			\
198290001Sglebius	ntp_config.c		\
199290001Sglebius	ntp_keyword.h		\
200290001Sglebius	ntp_io.c		\
201290001Sglebius	ntp_parser.y		\
202290001Sglebius	ntp_scanner.c		\
203290001Sglebius	ntp_scanner.h		\
204290001Sglebius	ntpd.c			\
205290001Sglebius	ntpd-opts.c		\
206290001Sglebius	ntpd-opts.h		\
207290001Sglebius	$(NULL)
208290001Sglebius
209290001Sglebiusntpdsim_SOURCES =		\
210290001Sglebius	$(ntpd_SOURCES)		\
211290001Sglebius	ntp_prio_q.c		\
212290001Sglebius	ntpsim.c		\
213290001Sglebius	$(NULL)
214290001Sglebius
215290001Sglebius# libntpd_a_SOURCES do not use #ifdef SIM
216290001Sglebius
217290001Sglebiuslibntpd_a_SOURCES =		\
218290001Sglebius	cmd_args.c		\
219290001Sglebius	jupiter.h		\
220290001Sglebius	ntp_control.c		\
221290001Sglebius	ntp_crypto.c		\
222290001Sglebius	ntp_filegen.c		\
223290001Sglebius	ntp_leapsec.c		\
224290001Sglebius	ntp_loopfilter.c	\
225290001Sglebius	ntp_monitor.c		\
226290001Sglebius	ntp_peer.c		\
227290001Sglebius	ntp_proto.c		\
228290001Sglebius	ntp_refclock.c		\
229290001Sglebius	ntp_request.c		\
230290001Sglebius	ntp_restrict.c		\
231290001Sglebius	ntp_signd.c		\
232290001Sglebius	ntp_timer.c		\
233290001Sglebius	ntp_util.c		\
234290001Sglebius	ppsapi_timepps.h	\
235290001Sglebius	rc_cmdlength.c		\
236290001Sglebius	refclock_acts.c		\
237290001Sglebius	refclock_arbiter.c	\
238290001Sglebius	refclock_arc.c		\
239290001Sglebius	refclock_as2201.c	\
240290001Sglebius	refclock_atom.c		\
241290001Sglebius	refclock_bancomm.c	\
242290001Sglebius	refclock_chronolog.c	\
243290001Sglebius	refclock_chu.c		\
244290001Sglebius	refclock_conf.c		\
245290001Sglebius	refclock_datum.c	\
246290001Sglebius	refclock_dumbclock.c	\
247290001Sglebius	refclock_fg.c		\
248290001Sglebius	refclock_gpsdjson.c	\
249290001Sglebius	refclock_gpsvme.c	\
250290001Sglebius	refclock_heath.c	\
251290001Sglebius	refclock_hopfser.c	\
252290001Sglebius	refclock_hopfpci.c	\
253290001Sglebius	refclock_hpgps.c	\
254290001Sglebius	refclock_irig.c		\
255290001Sglebius	refclock_jjy.c		\
256290001Sglebius	refclock_jupiter.c	\
257290001Sglebius	refclock_leitch.c	\
258290001Sglebius	refclock_local.c	\
259290001Sglebius	refclock_mx4200.c	\
260290001Sglebius	refclock_neoclock4x.c	\
261290001Sglebius	refclock_nmea.c		\
262290001Sglebius	refclock_oncore.c	\
263290001Sglebius	refclock_palisade.c	\
264290001Sglebius	refclock_palisade.h	\
265290001Sglebius	refclock_parse.c	\
266290001Sglebius	refclock_pcf.c		\
267290001Sglebius	refclock_pst.c		\
268290001Sglebius	refclock_ripencc.c	\
269290001Sglebius	refclock_shm.c		\
270290001Sglebius	refclock_tpro.c		\
271290001Sglebius	refclock_true.c		\
272290001Sglebius	refclock_tt560.c	\
273290001Sglebius	refclock_ulink.c	\
274290001Sglebius	refclock_wwv.c		\
275290001Sglebius	refclock_wwvb.c		\
276290001Sglebius	refclock_zyfer.c	\
277290001Sglebius	refclock_tsyncpci.c	\
278290001Sglebius	$(NULL)
279290001Sglebius
280290001Sglebiusk-g-u-submake: keyword-gen
281290001Sglebius	./keyword-gen $(srcdir)/ntp_parser.h > k-g.out
282290001Sglebius	@grep -v diff_ignore_line < k-g.out > cmp1
283290001Sglebius	@grep -v diff_ignore_line < $(srcdir)/ntp_keyword.h > cmp2
284290001Sglebius	@cmp cmp1 cmp2 > /dev/null || \
285290001Sglebius		{ mv -f k-g.out $(srcdir)/ntp_keyword.h && \
286290001Sglebius		  echo 'Generated changed ntp_keyword.h.' ;}
287290001Sglebius	@[ ! -f k-g.out ] || \
288290001Sglebius		{ rm k-g.out && echo 'ntp_keyword.h is up to date.' ;}
289290001Sglebius	@rm cmp1 cmp2
290290001Sglebius	@echo 'keyword-gen and ntp_keyword.h are up to date.' > $@
291290001Sglebius
292290001Sglebius$(srcdir)/keyword-gen-utd: $(srcdir)/keyword-gen.c $(srcdir)/ntp_parser.h
293290001Sglebius	$(MAKE) $(AM_MAKEFLAGS) k-g-u-submake	# avoid explicit dependency
294290001Sglebius	grep diff_ignore_line $(srcdir)/ntp_keyword.h > k-g-u
295290001Sglebius	mv -f k-g-u $@
296290001Sglebius
297290001Sglebius$(srcdir)/ntp_keyword.h: $(srcdir)/keyword-gen-utd
298290001Sglebius	@: do-nothing action to avoid default SCCS get
299290001Sglebius	@: .h updated if needed by k-g-u-submake rule
300290001Sglebius
301182007Sroberto$(srcdir)/ntpd-opts.h: $(srcdir)/ntpd-opts.c
302290001Sglebius	@: do-nothing action to avoid default SCCS get, .h built with .c
303290001Sglebius
304182007Sroberto$(srcdir)/ntpd-opts.c: $(srcdir)/ntpd-opts.def $(srcdir)/ntpdbase-opts.def $(std_def_list)
305182007Sroberto	$(run_ag) ntpd-opts.def
306182007Sroberto
307290001Sglebius###
308182007Sroberto
309290001Sglebius$(srcdir)/ntpd.1ntpdman: $(srcdir)/ntpd-opts.def $(srcdir)/ntpdbase-opts.def $(std_def_list)
310290001Sglebius	$(run_ag) -DMAN_SECTION=1ntpdman -Tagman-cmd.tpl ntpd-opts.def
311182007Sroberto
312290001Sglebius$(srcdir)/ntpd.man.in: $(srcdir)/ntpd.1ntpdman $(top_srcdir)/sntp/scripts/mansec2subst.sed
313290001Sglebius	sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/ntpd.1ntpdman > $(srcdir)/ntpd.man.in+
314290001Sglebius	mv $(srcdir)/ntpd.man.in+ $(srcdir)/ntpd.man.in
315182007Sroberto
316290001Sglebius###
317182007Sroberto
318290001Sglebius$(srcdir)/ntpd.1ntpdmdoc: $(srcdir)/ntpd-opts.def $(srcdir)/ntpdbase-opts.def $(std_def_list)
319290001Sglebius	$(run_ag) -DMAN_SECTION=1ntpdmdoc -Tagmdoc-cmd.tpl ntpd-opts.def
320182007Sroberto
321290001Sglebius$(srcdir)/ntpd.mdoc.in: $(srcdir)/ntpd.1ntpdmdoc $(top_srcdir)/sntp/scripts/mansec2subst.sed
322290001Sglebius	sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/ntpd.1ntpdmdoc > $(srcdir)/ntpd.mdoc.in+
323290001Sglebius	mv $(srcdir)/ntpd.mdoc.in+ $(srcdir)/ntpd.mdoc.in
324290001Sglebius
325290001Sglebius###
326290001Sglebius
327290001Sglebiusntpd.$(NTPD_MS): $(srcdir)/ntpd.$(MANTAGFMT).in $(top_builddir)/config.status
328290001Sglebius	$(top_builddir)/config.status --file=ntpd.$(NTPD_MS)+:$(srcdir)/ntpd.$(MANTAGFMT).in
329290001Sglebius	mv ntpd.$(NTPD_MS)+ ntpd.$(NTPD_MS)
330290001Sglebius
331290001Sglebius###
332290001Sglebius
333290001Sglebius$(srcdir)/invoke-ntp.conf.menu: $(srcdir)/invoke-ntp.conf.texi
334290001Sglebius	@: do-nothing action to avoid default SCCS get, .menu built with .texi
335290001Sglebius
336290001Sglebius$(srcdir)/invoke-ntp.conf.texi: $(srcdir)/ntp.conf.def $(std_def_list)
337290001Sglebius	$(run_ag) -Tagtexi-file.tpl -DLEVEL=section ntp.conf.def
338290001Sglebius
339290001Sglebius$(srcdir)/invoke-ntp.keys.menu: $(srcdir)/invoke-ntp.keys.texi
340290001Sglebius	@: do-nothing action to avoid default SCCS get, .menu built with .texi
341290001Sglebius
342290001Sglebius$(srcdir)/invoke-ntp.keys.texi: $(srcdir)/ntp.keys.def $(std_def_list)
343290001Sglebius	$(run_ag) -Tagtexi-file.tpl -DLEVEL=section ntp.keys.def
344290001Sglebius
345290001Sglebius$(srcdir)/ntp.conf.html: $(srcdir)/ntp.conf.texi $(top_srcdir)/sntp/include/version.texi
346290001Sglebius	cd $(srcdir) && ( makeinfo --force --html --no-split -o ntp.conf.html ntp.conf.texi || true )
347290001Sglebius
348290001Sglebius$(srcdir)/ntp.keys.html: $(srcdir)/ntp.keys.texi $(top_srcdir)/sntp/include/version.texi
349290001Sglebius	cd $(srcdir) && ( makeinfo --force --html --no-split -o ntp.keys.html ntp.keys.texi || true )
350290001Sglebius
351290001Sglebius$(srcdir)/ntpd.html: $(srcdir)/ntpd.texi $(top_srcdir)/sntp/include/version.texi
352290001Sglebius	cd $(srcdir) && ( makeinfo --force --html --no-split -o ntpd.html ntpd.texi || true )
353290001Sglebius
354290001Sglebius###
355290001Sglebius
356290001Sglebius$(srcdir)/ntp.conf.5man: $(srcdir)/ntp.conf.def $(std_def_list)
357290001Sglebius	$(run_ag) -DMAN_SECTION=5man -Tagman-cmd.tpl ntp.conf.def
358290001Sglebius
359290001Sglebius$(srcdir)/ntp.conf.man.in: $(srcdir)/ntp.conf.5man $(top_srcdir)/sntp/scripts/mansec2subst.sed
360290001Sglebius	sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/ntp.conf.5man > $(srcdir)/ntp.conf.man.in+
361290001Sglebius	mv $(srcdir)/ntp.conf.man.in+ $(srcdir)/ntp.conf.man.in
362290001Sglebius
363290001Sglebius###
364290001Sglebius
365290001Sglebius$(srcdir)/ntp.conf.5mdoc: $(srcdir)/ntp.conf.def $(std_def_list)
366290001Sglebius	$(run_ag) -DMAN_SECTION=5mdoc -Tagmdoc-cmd.tpl ntp.conf.def
367290001Sglebius
368290001Sglebius$(srcdir)/ntp.conf.mdoc.in: $(srcdir)/ntp.conf.5mdoc $(top_srcdir)/sntp/scripts/mansec2subst.sed
369290001Sglebius	sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/ntp.conf.5mdoc > $(srcdir)/ntp.conf.mdoc.in+
370290001Sglebius	mv $(srcdir)/ntp.conf.mdoc.in+ $(srcdir)/ntp.conf.mdoc.in
371290001Sglebius
372290001Sglebius###
373290001Sglebius
374290001Sglebiusntp.conf.5: $(srcdir)/ntp.conf.$(MANTAGFMT).in $(top_builddir)/config.status
375290001Sglebius	$(top_builddir)/config.status --file=ntp.conf.5+:$(srcdir)/ntp.conf.$(MANTAGFMT).in
376290001Sglebius	mv ntp.conf.5+ ntp.conf.5
377290001Sglebius
378290001Sglebius###
379290001Sglebius
380290001Sglebius$(srcdir)/ntp.keys.5man: $(srcdir)/ntp.keys.def $(std_def_list)
381290001Sglebius	$(run_ag) -DMAN_SECTION=5man -Tagman-file.tpl ntp.keys.def
382290001Sglebius
383290001Sglebius$(srcdir)/ntp.keys.man.in: $(srcdir)/ntp.keys.5man $(top_srcdir)/sntp/scripts/mansec2subst.sed
384290001Sglebius	sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/ntp.keys.5man > $(srcdir)/ntp.keys.man.in+
385290001Sglebius	mv $(srcdir)/ntp.keys.man.in+ $(srcdir)/ntp.keys.man.in
386290001Sglebius
387290001Sglebius###
388290001Sglebius
389290001Sglebius$(srcdir)/ntp.keys.5mdoc: $(srcdir)/ntp.keys.def $(std_def_list)
390290001Sglebius	$(run_ag) -DMAN_SECTION=5mdoc -Tagmdoc-file.tpl ntp.keys.def
391290001Sglebius
392290001Sglebius$(srcdir)/ntp.keys.mdoc.in: $(srcdir)/ntp.keys.5mdoc $(top_srcdir)/sntp/scripts/mansec2subst.sed
393290001Sglebius	sed -f $(top_srcdir)/sntp/scripts/mansec2subst.sed $(srcdir)/ntp.keys.5mdoc > $(srcdir)/ntp.keys.mdoc.in+
394290001Sglebius	mv $(srcdir)/ntp.keys.mdoc.in+ $(srcdir)/ntp.keys.mdoc.in
395290001Sglebius
396290001Sglebius###
397290001Sglebius
398290001Sglebiusntp.keys.5: $(srcdir)/ntp.keys.$(MANTAGFMT).in $(top_builddir)/config.status
399290001Sglebius	$(top_builddir)/config.status --file=ntp.keys.5+:$(srcdir)/ntp.keys.$(MANTAGFMT).in
400290001Sglebius	mv ntp.keys.5+ ntp.keys.5
401290001Sglebius
402290001Sglebius###
403290001Sglebius
404290001Sglebius$(srcdir)/invoke-ntpd.menu: $(srcdir)/invoke-ntpd.texi
405290001Sglebius	@: do-nothing action to avoid default SCCS get, .menu built with .texi
406290001Sglebius
407290001Sglebius$(srcdir)/invoke-ntpd.texi: $(srcdir)/ntpd-opts.def $(srcdir)/ntpdbase-opts.def $(std_def_list)
408290001Sglebius	$(run_ag) -Tagtexi-cmd.tpl -DLEVEL=section ntpd-opts.def
409290001Sglebius	$(top_srcdir)/scripts/build/check--help $@
410290001Sglebius
41154359Sroberto$(PROGRAMS): $(LDADD)
41254359Sroberto
413290001Sglebiuscompsave.conf: ntpd complete.conf
414290001Sglebius	./ntpd --configfile complete.conf --saveconfigquit $@
41554359Sroberto
416290001Sglebiuscheck-saveconfig: complete.conf compsave.conf
417290001Sglebius	-diff -u complete.conf compsave.conf
418290001Sglebius	cmp complete.conf compsave.conf && echo stamp > $@
419290001Sglebius
420182007Sroberto../libntp/libntpsim.a:
421290001Sglebius	cd ../libntp && $(MAKE) $(AM_MAKEFLAGS) libntpsim.a
422182007Sroberto
42354359Sroberto../libparse/libparse.a:
424290001Sglebius	cd ../libparse && $(MAKE) $(AM_MAKEFLAGS) check-libparse
42554359Sroberto
426290001Sglebius$(top_srcdir)/sntp/scm-rev:
427290001Sglebius	cd ../sntp && $(MAKE) $(AM_MAKEFLAGS) check-scm-rev
428182007Sroberto
429290001Sglebiusversion.c: $(ntpd_OBJECTS) ../libntp/libntp.a @LIBPARSE@ Makefile $(top_srcdir)/sntp/scm-rev
430290001Sglebius	env CSET=`cat $(top_srcdir)/sntp/scm-rev` $(top_builddir)/scripts/build/mkver ntpd
431182007Sroberto
432290001Sglebiusversion.o: version.c
433290001Sglebius	env CCACHE_DISABLE=1 $(COMPILE) -c version.c -o version.o
434290001Sglebius
435290001Sglebius$(srcdir)/Makefile.am:
436290001Sglebius	@: do-nothing
437290001Sglebius
438290001Sglebiusinclude $(top_srcdir)/bincheck.mf
439290001Sglebiusinclude $(top_srcdir)/check-libopts.mf
440290001Sglebiusinclude $(top_srcdir)/sntp/check-libntp.mf
441290001Sglebiusinclude $(top_srcdir)/depsver.mf
442290001Sglebiusinclude $(top_srcdir)/includes.mf
443