1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00
freebsd/contrib/ntp/Makefile.am

126 lines
3.1 KiB
Makefile
Raw Normal View History

1999-12-09 13:01:21 +00:00
#AUTOMAKE_OPTIONS = util/ansi2knr foreign dist-tarZ no-dependencies
2001-08-29 14:35:15 +00:00
AUTOMAKE_OPTIONS = util/ansi2knr foreign
1999-12-09 13:01:21 +00:00
SUBDIRS = \
scripts \
include \
2001-08-29 14:35:15 +00:00
ElectricFence \
librsaref \
1999-12-09 13:01:21 +00:00
libntp \
libparse \
ntpd \
ntpdate \
ntpdc \
ntpq \
ntptrace \
parseutil \
adjtimed \
clockstuff \
kernel \
util
2001-08-29 14:35:15 +00:00
EXTRA_DIST = \
COPYRIGHT \
ChangeLog \
2002-10-29 19:58:12 +00:00
ChangeLog-4.1.0 \
2001-08-29 14:35:15 +00:00
NEWS \
NOTES.y2kfixes \
2002-10-29 19:58:12 +00:00
README.bk \
2001-08-29 14:35:15 +00:00
README.cvs \
README.des \
README.hackers \
2002-11-04 19:36:11 +00:00
README.refclocks \
2001-08-29 14:35:15 +00:00
README.rsa \
2002-10-29 19:58:12 +00:00
README.versions \
2001-08-29 14:35:15 +00:00
TODO \
WHERE-TO-START \
acconfig.h \
build \
config.guess \
config.h.in \
config.sub \
dot.emacs \
excludes \
flock-build \
install-sh \
ntp_update \
readme.y2kfixes \
results.y2kfixes \
conf \
html \
2002-10-29 19:58:12 +00:00
ports \
version
2001-08-29 14:35:15 +00:00
DISTCLEANFILES = .warning
1999-12-09 13:01:21 +00:00
#ETAGS_ARGS = $(srcdir)/Makefile.am $(srcdir)/configure.in
ETAGS_ARGS = Makefile.am configure.in acconfig.h
# HMS: make ports be the last directory...
2001-08-29 14:35:15 +00:00
# DIST_HOOK_DIRS = conf html scripts ports
1999-12-09 13:01:21 +00:00
2002-10-29 19:58:12 +00:00
# HMS: Keep .warning first, as that way it gets printed first.
BUILT_SOURCES = .warning $(srcdir)/COPYRIGHT $(srcdir)/version
1999-12-09 13:01:21 +00:00
$(srcdir)/COPYRIGHT: html/copyright.htm
( echo "This file is automatically generated from html/copyright.htm" ; lynx -dump $(srcdir)/html/copyright.htm ) > $(srcdir)/COPYRIGHT.new && mv $(srcdir)/COPYRIGHT.new $(srcdir)/COPYRIGHT
2002-10-29 19:58:12 +00:00
# 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.
# Unfortunately, I haven't found the necessary magic to redirect this error
# output to /dev/null under ancient/unique shells like the one Ultrix uses.
# We'll also get an error of srcdir or version is unwritable.
$(srcdir)/version: FRC.version
-(bk version) >/dev/null 2>&1 && \
cd $(srcdir) && \
x=`bk -R prs -hr+ -nd:I: ChangeSet` && \
case "$$x" in '') ;; *) echo $$x > version ;; esac
1999-12-09 13:01:21 +00:00
dist-hook:
2001-08-29 14:35:15 +00:00
@find $(distdir) -type d -name CVS -print | xargs rm -rf
2002-10-29 19:58:12 +00:00
@find $(distdir) -type d -name SCCS -print | xargs rm -rf
2002-11-04 19:36:11 +00:00
@for i in `find $(distdir)/ports/winnt -type f -name '*.ds*' -print`; \
do chmod u+w $$i ; unix2dos $$i $$i; done
2002-10-29 19:58:12 +00:00
.warning:
@echo "Compiling with GCC now generates lots of new warnings."
@echo " "
@echo "Don't be concerned. They're just warnings."
@echo " "
@echo "Don't send bug reports about the warnings, either."
@echo " "
@echo "Feel free to send patches that fix these warnings, though."
@echo " "
@sleep 1
@touch .warning
1999-12-09 13:01:21 +00:00
2002-10-29 19:58:12 +00:00
# HMS: The following seems to be a work-in-progress...
1999-12-09 13:01:21 +00:00
CVO=`$(srcdir)/config.guess`
.buildcvo:
echo "$(CVO)" > .buildcvo
.checkcvo: .buildcvo FRC.checkcvo
@if [ "`cat .buildcvo`" != "$(CVO)" ];then \
echo "This directory was configured for `cat .buildcvo`"; \
echo "but this machine is a $(CVO)"; \
exit 1; \
fi
BHOST=`(hostname || uname -n)`
.buildhost:
echo "$(BHOST)" > .buildhost
.checkhost: .buildhost FRC.checkhost
@if [ "`cat .buildhost`" != "$(BHOST)" ];then \
echo "Built on `cat .buildhost` but this is $(BHOST)"; \
echo " "; \
fi
2002-10-29 19:58:12 +00:00
FRC.distwarn FRC.checkcvo FRC.checkhost FRC.version:
1999-12-09 13:01:21 +00:00
2002-10-29 19:58:12 +00:00
# HMS: what was I trying to do with this?
#dot.emacs: FRC.distwarn