$(NULL)
$(srcdir)/COPYRIGHT: $(srcdir)/html/copyright.html
- ( echo "This file is automatically generated from html/copyright.html" ; lynx -dump $(srcdir)/html/copyright.html ) > $(srcdir)/COPYRIGHT.new && mv $(srcdir)/COPYRIGHT.new $(srcdir)/COPYRIGHT
+ { echo "This file is automatically generated from html/copyright.html" ; \
+ lynx -dump $(srcdir)/html/copyright.html ;} > COPYRIGHT.new \
+ && mv -f COPYRIGHT.new $(srcdir)/COPYRIGHT
+
+COPYRIGHT-please: $(srcdir)/COPYRIGHT
+ @: do-nothing action to prevent default \
+ This target is needed by sntp/Makefile.am on decrepit \
+ FreeBSD 6.x make which fails with "make COPYRIGHT" \
+ configured in $(srcdir) but "make ./COPYRIGHT" succeeds. \
+ Rather than determine our $(srcdir) from sntp/Makefile.am \
+ COPYRIGHT-please serves as a fixed target.
# HMS: The next bit is still suboptimal. If bk is present but this NTP
# repo is not a bk repo, we'll get an error message from the prs command.
fi
FRC.CommitLog FRC.distwarn FRC.checkcvo FRC.checkhost FRC.version:
+ @: do-nothing action prevents any default
# HMS: what was I trying to do with this?
#dot.emacs: FRC.distwarn
sbin_PROGRAMS= sntp
endif
-CLEANFILES=
+CLEANFILES = check-COPYRIGHT-submake
SUBDIRS=
if NEED_LIBOPTS
$(NULL)
FRC:
+ @: do-nothing action to prevent default SCCS get
+ @: FRC "force" depends on nothing and is not a file, so is
+ @: always out-of-date causing targets which depend on it to
+ @: similarly always be outdated causing their rules to fire
+ @: each time they or a dependent is built.
+
check-autogen-version.def: FRC
@cd $(srcdir) \
&& test -r ../include/autogen-version.def \
echo "Installing new sntp/autogen-version.def file"; \
fi )
+$(srcdir)/autogen-version.def:
+ $(MAKE) check-autogen-version.def
+
check-version.def: FRC
@cd $(srcdir) \
&& test -r ../include/version.def \
echo "Installing new sntp/version.def file"; \
fi )
+$(srcdir)/version.def:
+ $(MAKE) check-version.def
+
check-version.m4: FRC
@cd $(srcdir) \
&& test -r ../version.m4 \
echo "Installing new sntp/version.m4 file"; \
fi )
+$(srcdir)/version.m4:
+ $(MAKE) check-version.m4
+
check-version.texi: FRC
@cd $(srcdir) \
&& test -r ../include/version.texi \
echo "Installing new sntp/version.texi file"; \
fi )
+$(srcdir)/version.texi:
+ $(MAKE) check-version.texi
+
$(srcdir)/../COPYRIGHT:
- cd .. && $(MAKE) COPYRIGHT
+ cd .. && $(MAKE) COPYRIGHT-please
+
+check-COPYRIGHT-submake: $(srcdir)/../COPYRIGHT
+ @cmp -s $(srcdir)/../COPYRIGHT $(srcdir)/COPYRIGHT \
+ || { cp $(srcdir)/../COPYRIGHT $(srcdir)/COPYRIGHT \
+ && echo 'updated sntp/COPYRIGHT installed' ;}
+ @echo 'submake avoided if this file is newer than parent COPYRIGHT' > $@
+
+check-COPYRIGHT: FRC
+ [ ! -r $(srcdir)/../COPYRIGHT ] \
+ || [ check-COPYRIGHT-submake -nt $(srcdir)/../COPYRIGHT ] \
+ || $(MAKE) check-COPYRIGHT-submake
-$(srcdir)/COPYRIGHT: $(srcdir)/../COPYRIGHT
- cat $(srcdir)/../COPYRIGHT > $@
+$(srcdir)/COPYRIGHT: check-COPYRIGHT
+ @: do-nothing action to prevent any default
$(srcdir)/sntp-opts.h: $(srcdir)/sntp-opts.c
@: do-nothing action to avoid default SCCS get, .h built with .c
cd $(srcdir) && makeinfo --force --html --no-split -o sntp.html sntp.texi
../libntp/libntp.a:
- cd ../libntp && $(MAKE)
+ cd ../libntp && $(MAKE) libntp.a
libtool: $(LIBTOOL_DEPS)
./config.status --recheck