1 # Makefile.am, by Harlan Stenn, from:
3 # N.M. Maclaren, October 2000.
5 AUTOMAKE_OPTIONS = foreign
6 ACLOCAL_AMFLAGS= -I libopts/m4
8 AM_CPPFLAGS= $(LIBOPTS_CFLAGS)
9 LDADD= $(LIBOPTS_LDADD)
13 bindir= ${exec_prefix}/${BINSUBDIR}
15 #run_ag= cd $(srcdir) && autogen --writable -L $(top_srcdir)/include
16 run_ag= cd $(srcdir) && autogen --writable
39 EXTRA_DIST= bincheck.mf \
41 sntp-opts.def sntp.1 sntp-opts.texi sntp-opts.menu \
42 autogen-version.def version.def
43 BUILT_SOURCES= check-autogen-version.def check-version.def \
44 sntp-opts.c sntp-opts.h sntp.1 sntp-opts.texi sntp-opts.menu
49 check-autogen-version.def: FRC
51 && test -r ../include/autogen-version.def \
52 && ( if cmp -s ../include/autogen-version.def autogen-version.def; \
54 else cp ../include/autogen-version.def autogen-version.def; \
55 echo "Installing new sntp/autogen-version.def file"; \
58 check-version.def: FRC
60 && test -r ../include/version.def \
61 && ( if cmp -s ../include/version.def version.def; \
63 else cp ../include/version.def version.def; \
64 echo "Installing new sntp/version.def file"; \
67 $(srcdir)/sntp-opts.h: $(srcdir)/sntp-opts.c
68 $(srcdir)/sntp-opts.c: $(srcdir)/sntp-opts.def $(srcdir)/version.def
69 $(run_ag) sntp-opts.def
71 $(srcdir)/sntp.1: $(srcdir)/sntp-opts.def $(srcdir)/version.def
72 $(run_ag) -Tagman1.tpl -bsntp sntp-opts.def
74 $(srcdir)/sntp-opts.texi $(srcdir)/sntp-opts.menu: $(srcdir)/sntp-opts.def $(srcdir)/version.def
75 $(run_ag) -Taginfo.tpl -DLEVEL=section sntp-opts.def