xref: /freebsd/contrib/ntp/Makefile.am (revision b52b9d56d4e96089873a75f9e29062eec19fabba)
1#AUTOMAKE_OPTIONS = util/ansi2knr foreign dist-tarZ no-dependencies
2AUTOMAKE_OPTIONS = util/ansi2knr foreign
3
4SUBDIRS = \
5	scripts \
6	include \
7	ElectricFence	\
8	librsaref	\
9	libntp	\
10	libparse	\
11	ntpd	\
12	ntpdate	\
13	ntpdc	\
14	ntpq	\
15	ntptrace	\
16	parseutil	\
17	adjtimed	\
18	clockstuff	\
19	kernel	\
20	util
21
22EXTRA_DIST = \
23	COPYRIGHT \
24	ChangeLog \
25	NEWS \
26	NOTES.y2kfixes \
27	README.cvs \
28	README.des \
29	README.hackers \
30	README.rsa \
31	TODO \
32	WHERE-TO-START \
33	acconfig.h \
34	build \
35	config.guess \
36	config.h.in \
37	config.sub \
38	dot.emacs \
39	excludes \
40	flock-build \
41	install-sh \
42	ntp_update \
43	readme.y2kfixes \
44	results.y2kfixes \
45	conf \
46	html \
47	ports
48
49DISTCLEANFILES = .warning
50
51#ETAGS_ARGS = $(srcdir)/Makefile.am $(srcdir)/configure.in
52ETAGS_ARGS = Makefile.am configure.in acconfig.h
53
54# HMS: make ports be the last directory...
55# DIST_HOOK_DIRS = conf html scripts ports
56
57BUILT_SOURCES = $(srcdir)/COPYRIGHT
58
59$(srcdir)/COPYRIGHT: html/copyright.htm
60	( 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
61
62dist-hook:
63	@find $(distdir) -type d -name CVS -print | xargs rm -rf
64
65Makefile: .warning
66
67CVO=`$(srcdir)/config.guess`
68
69.buildcvo:
70	echo "$(CVO)" > .buildcvo
71
72.checkcvo: .buildcvo FRC.checkcvo
73	@if [ "`cat .buildcvo`" != "$(CVO)" ];then	\
74		echo "This directory was configured for `cat .buildcvo`"; \
75		echo "but this machine is a $(CVO)";	\
76		exit 1;	\
77	fi
78
79BHOST=`(hostname || uname -n)`
80
81.buildhost:
82	echo "$(BHOST)" > .buildhost
83
84.checkhost: .buildhost FRC.checkhost
85	@if [ "`cat .buildhost`" != "$(BHOST)" ];then	\
86		echo "Built on `cat .buildhost` but this is $(BHOST)"; \
87		echo " "; \
88	fi
89
90.warning:
91	@echo "Compiling with GCC now generates lots of new warnings."
92	@echo " "
93	@echo "Don't be concerned. They're just warnings."
94	@echo " "
95	@echo "Don't send bug reports about the warnings, either."
96	@echo " "
97	@echo "Feel free to send patches that fix these warnings, though."
98	@echo " "
99	@sleep 1
100	@touch .warning
101
102FRC.distwarn FRC.checkcvo FRC.checkhost:
103
104dot.emacs: FRC.distwarn
105