freebsd-skq/contrib/ntp/Makefile.am

178 lines
4.0 KiB
Makefile
Raw Normal View History

1999-12-09 13:01:21 +00:00
#AUTOMAKE_OPTIONS = util/ansi2knr foreign dist-tarZ no-dependencies
AUTOMAKE_OPTIONS = util/ansi2knr foreign 1.8
ACLOCAL_AMFLAGS= -I m4 -I libopts/m4
NULL=
SUBDIRS=
if NEED_LIBOPTS
SUBDIRS+= libopts
endif
SUBDIRS+= \
scripts \
include \
2001-08-29 14:35:15 +00:00
ElectricFence \
@ARLIB_DIR@ \
libntp \
1999-12-09 13:01:21 +00:00
libparse \
ntpd \
ntpdate \
ntpdc \
ntpq \
1999-12-09 13:01:21 +00:00
parseutil \
adjtimed \
clockstuff \
kernel \
sntp \
util \
$(NULL)
DIST_SUBDIRS= \
scripts \
include \
2004-07-20 15:01:56 +00:00
ElectricFence \
arlib \
libntp \
libopts \
2004-07-20 15:01:56 +00:00
libparse \
ntpd \
ntpdate \
ntpdc \
ntpq \
2004-07-20 15:01:56 +00:00
parseutil \
adjtimed \
clockstuff \
kernel \
sntp \
util \
$(NULL)
DISTCHECK_CONFIGURE_FLAGS= --with-arlib --enable-local-libopts
EXTRA_DIST = \
COPYRIGHT \
ChangeLog \
CommitLog \
CommitLog-4.1.0 \
NEWS \
NOTES.y2kfixes \
README.bk \
README.hackers \
README.patches \
2002-11-04 19:36:11 +00:00
README.refclocks \
README.versions \
TODO \
WHERE-TO-START \
bootstrap \
build \
config.guess \
config.h.in \
config.sub \
dot.emacs \
excludes \
flock-build \
install-sh \
packageinfo.sh \
readme.y2kfixes \
results.y2kfixes \
\
conf \
html \
libisc \
ports \
\
bincheck.mf \
version \
version.m4 \
\
$(NULL)
DISTCLEANFILES = .gcc-warning
#ETAGS_ARGS = $(srcdir)/Makefile.am $(srcdir)/configure.ac
ETAGS_ARGS = Makefile.am configure.ac
1999-12-09 13:01:21 +00:00
# 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
# HMS: Keep .gcc-warning first, as that way it gets printed first.
BUILT_SOURCES = .gcc-warning $(srcdir)/COPYRIGHT $(srcdir)/version $(srcdir)/version.m4 $(srcdir)/include/version.def
1999-12-09 13:01:21 +00:00
2004-07-20 15:01:56 +00:00
$(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
1999-12-09 13:01:21 +00:00
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.
2004-07-20 15:01:56 +00:00
# We'll also get an error if srcdir or version is unwritable.
2002-10-29 19:58:12 +00:00
$(srcdir)/version: FRC.version
-(bk version) >/dev/null 2>&1 && \
cd $(srcdir) && \
x=`bk -R prs -hr+ -nd:I: ChangeSet` && \
2004-07-20 15:01:56 +00:00
y=`cat version 2>/dev/null` || true && \
case "$$x" in ''|$$y) ;; *) echo $$x > version ;; esac
2002-10-29 19:58:12 +00:00
$(srcdir)/version.m4: $(srcdir)/packageinfo.sh
cd $(srcdir) && \
./scripts/genver version.m4
$(srcdir)/include/version.def: $(srcdir)/packageinfo.sh
cd $(srcdir) && \
./scripts/genver include/version.def
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
2004-07-20 15:01:56 +00:00
@chmod u+w $(distdir)/ports/winnt
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
.gcc-warning:
2002-10-29 19:58:12 +00:00
@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 $@
CommitLog: FRC.CommitLog
cd $(srcdir) \
&& /bin/test -e CommitLog \
-a SCCS/s.ChangeSet -ot CommitLog \
|| scripts/genCommitLog
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
FRC.CommitLog 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