xref: /netbsd/external/bsd/ntp/dist/Makefile.am (revision 4305584a)
1*4305584aSkardel## LIBOPTS_CHECK_NOBUILD works with Automake 1.10 now
2abb0f93cSkardelAUTOMAKE_OPTIONS = foreign 1.10
3*4305584aSkardelACLOCAL_AMFLAGS = -I m4 -I sntp/libopts/m4
4abb0f93cSkardel
5abb0f93cSkardelNULL =
6abb0f93cSkardel
7abb0f93cSkardelSUBDIRS =
8abb0f93cSkardelSUBDIRS += 		\
9abb0f93cSkardel	scripts 	\
10abb0f93cSkardel	include 	\
11abb0f93cSkardel	ElectricFence	\
12abb0f93cSkardel	libntp		\
13*4305584aSkardel	sntp		\
14abb0f93cSkardel	libparse	\
15abb0f93cSkardel	ntpd		\
16abb0f93cSkardel	ntpdate		\
17abb0f93cSkardel	ntpdc		\
18abb0f93cSkardel	ntpq		\
19abb0f93cSkardel	ntpsnmpd	\
20abb0f93cSkardel	parseutil	\
21abb0f93cSkardel	adjtimed	\
22abb0f93cSkardel	clockstuff	\
23abb0f93cSkardel	kernel		\
24abb0f93cSkardel	util		\
25abb0f93cSkardel	$(NULL)
26abb0f93cSkardel
27abb0f93cSkardelDIST_SUBDIRS =		\
28abb0f93cSkardel	scripts		\
29abb0f93cSkardel	include		\
30abb0f93cSkardel	ElectricFence	\
31abb0f93cSkardel	libntp		\
32abb0f93cSkardel	libparse	\
33*4305584aSkardel	sntp		\
34abb0f93cSkardel	ntpd		\
35abb0f93cSkardel	ntpdate		\
36abb0f93cSkardel	ntpdc		\
37abb0f93cSkardel	ntpq		\
38abb0f93cSkardel	ntpsnmpd	\
39abb0f93cSkardel	parseutil	\
40abb0f93cSkardel	adjtimed	\
41abb0f93cSkardel	clockstuff	\
42abb0f93cSkardel	kernel		\
43abb0f93cSkardel	util		\
44abb0f93cSkardel	$(NULL)
45abb0f93cSkardel
46*4305584aSkardelDISTCHECK_CONFIGURE_FLAGS = -C
47abb0f93cSkardel
48abb0f93cSkardelEXTRA_DIST =			\
49*4305584aSkardel	$(srcdir)/COPYRIGHT	\
50abb0f93cSkardel	ChangeLog		\
51abb0f93cSkardel	CommitLog		\
52abb0f93cSkardel	CommitLog-4.1.0		\
53abb0f93cSkardel	NEWS			\
54abb0f93cSkardel	NOTES.y2kfixes		\
55abb0f93cSkardel	README.bk		\
56abb0f93cSkardel	README.hackers		\
57abb0f93cSkardel	README.patches		\
58abb0f93cSkardel	README.refclocks	\
59abb0f93cSkardel	README.versions		\
60abb0f93cSkardel	TODO			\
61abb0f93cSkardel	WHERE-TO-START		\
62abb0f93cSkardel	bootstrap		\
63abb0f93cSkardel	build			\
64abb0f93cSkardel	config.guess		\
65abb0f93cSkardel	config.h.in		\
66abb0f93cSkardel	config.sub		\
67abb0f93cSkardel	dot.emacs		\
68abb0f93cSkardel	excludes		\
69abb0f93cSkardel	flock-build		\
70abb0f93cSkardel	install-sh		\
71abb0f93cSkardel	packageinfo.sh		\
72abb0f93cSkardel	readme.y2kfixes		\
73abb0f93cSkardel	results.y2kfixes	\
74abb0f93cSkardel	\
75abb0f93cSkardel	conf			\
76abb0f93cSkardel	html			\
77abb0f93cSkardel	lib/isc			\
78abb0f93cSkardel	ports			\
79abb0f93cSkardel	\
80abb0f93cSkardel	bincheck.mf		\
81abb0f93cSkardel	depsver.mf		\
82abb0f93cSkardel	deps-ver		\
83*4305584aSkardel	$(srcdir)/version	\
84abb0f93cSkardel	version.m4		\
85abb0f93cSkardel	\
86abb0f93cSkardel	$(NULL)
87abb0f93cSkardel
88abb0f93cSkardelCLEANFILES =
89abb0f93cSkardelDISTCLEANFILES = .gcc-warning
90abb0f93cSkardel
91abb0f93cSkardelETAGS_ARGS = Makefile.am configure.ac
92abb0f93cSkardel
93abb0f93cSkardel# HMS: Keep .gcc-warning first, as that way it gets printed first.
94abb0f93cSkardelBUILT_SOURCES =				\
95abb0f93cSkardel	.gcc-warning			\
96abb0f93cSkardel	libtool				\
97abb0f93cSkardel	$(srcdir)/COPYRIGHT		\
98abb0f93cSkardel	$(srcdir)/version		\
99abb0f93cSkardel	$(srcdir)/version.m4		\
100abb0f93cSkardel	$(srcdir)/include/version.def	\
101abb0f93cSkardel	$(srcdir)/include/version.texi	\
102*4305584aSkardel	$(srcdir)/.checkChangeLog	\
103abb0f93cSkardel	$(NULL)
104abb0f93cSkardel
105abb0f93cSkardel$(srcdir)/COPYRIGHT: $(srcdir)/html/copyright.html
106*4305584aSkardel	{ echo "This file is automatically generated from html/copyright.html" ; \
107*4305584aSkardel	  lynx -dump $(srcdir)/html/copyright.html ;} > COPYRIGHT.new \
108*4305584aSkardel	&& mv -f COPYRIGHT.new $(srcdir)/COPYRIGHT
109*4305584aSkardel
110*4305584aSkardelCOPYRIGHT-please: $(srcdir)/COPYRIGHT
111*4305584aSkardel	@: do-nothing action to prevent default \
112*4305584aSkardel	   This target is needed by sntp/Makefile.am on decrepit \
113*4305584aSkardel	   FreeBSD 6.x make which fails with "make COPYRIGHT" \
114*4305584aSkardel	   configured in $(srcdir) but "make ./COPYRIGHT" succeeds. \
115*4305584aSkardel	   Rather than determine our $(srcdir) from sntp/Makefile.am \
116*4305584aSkardel	   COPYRIGHT-please serves as a fixed target.
117abb0f93cSkardel
118abb0f93cSkardel# HMS: The next bit is still suboptimal.  If bk is present but this NTP
119abb0f93cSkardel# repo is not a bk repo, we'll get an error message from the prs command.
120abb0f93cSkardel# Unfortunately, I haven't found the necessary magic to redirect this error
121abb0f93cSkardel# output to /dev/null under ancient/unique shells like the one Ultrix uses.
122abb0f93cSkardel# We'll also get an error if srcdir or version is unwritable.
123abb0f93cSkardel$(srcdir)/version: FRC.version
124abb0f93cSkardel	-(bk version) >/dev/null 2>&1 && \
125abb0f93cSkardel	    cd $(srcdir) && \
126abb0f93cSkardel	    x=`bk -R prs -hr+ -nd:I: ChangeSet` && \
127abb0f93cSkardel	    y=`cat version 2>/dev/null` || true && \
128abb0f93cSkardel	    case "$$x" in ''|$$y) ;; *) echo $$x > version ;; esac
129abb0f93cSkardel
130abb0f93cSkardel$(srcdir)/version.m4: $(srcdir)/packageinfo.sh
131*4305584aSkardel	TEMPDIR=`pwd` && export TEMPDIR && cd $(srcdir) && \
132abb0f93cSkardel	./scripts/genver version.m4
133abb0f93cSkardel
134abb0f93cSkardel$(srcdir)/include/version.def: $(srcdir)/packageinfo.sh
135*4305584aSkardel	TEMPDIR=`pwd` && export TEMPDIR && cd $(srcdir) && \
136abb0f93cSkardel	./scripts/genver include/version.def
137abb0f93cSkardel
138abb0f93cSkardel$(srcdir)/include/version.texi: $(srcdir)/packageinfo.sh
139*4305584aSkardel	TEMPDIR=`pwd` && export TEMPDIR && cd $(srcdir) && \
140abb0f93cSkardel	./scripts/genver include/version.texi
141abb0f93cSkardel
142*4305584aSkardel$(srcdir)/.checkChangeLog: $(srcdir)/ChangeLog $(srcdir)/scripts/checkChangeLog
143*4305584aSkardel	cd $(srcdir) && \
144*4305584aSkardel	./scripts/checkChangeLog
145*4305584aSkardel
146abb0f93cSkardellibtool: $(LIBTOOL_DEPS)
147abb0f93cSkardel	./config.status --recheck
148abb0f93cSkardel
149abb0f93cSkardeldist-hook:
150abb0f93cSkardel	@find $(distdir) -type d -name SCCS -print | xargs rm -rf
151abb0f93cSkardel
152abb0f93cSkardel.gcc-warning:
153abb0f93cSkardel	@echo "Compiling with GCC now generates lots of new warnings."
154abb0f93cSkardel	@echo " "
155abb0f93cSkardel	@echo "Don't be concerned. They're just warnings."
156abb0f93cSkardel	@echo " "
157abb0f93cSkardel	@echo "Don't send bug reports about the warnings, either."
158abb0f93cSkardel	@echo " "
159abb0f93cSkardel	@echo "Feel free to send patches that fix these warnings, though."
160abb0f93cSkardel	@echo " "
161abb0f93cSkardel	@sleep 1
162abb0f93cSkardel	@touch $@
163abb0f93cSkardel
164abb0f93cSkardelCommitLog: FRC.CommitLog
165abb0f93cSkardel	cd $(srcdir)					\
166*4305584aSkardel	&& $(PATH_TEST) -e CommitLog			\
167abb0f93cSkardel		-a SCCS/s.ChangeSet -ot CommitLog	\
168abb0f93cSkardel	|| scripts/genCommitLog
169abb0f93cSkardel
170abb0f93cSkardel# HMS: The following seems to be a work-in-progress...
171abb0f93cSkardel
172abb0f93cSkardelCVO=`$(srcdir)/config.guess`
173abb0f93cSkardel
174abb0f93cSkardel.buildcvo:
175abb0f93cSkardel	echo "$(CVO)" > .buildcvo
176abb0f93cSkardel
177abb0f93cSkardel.checkcvo: .buildcvo FRC.checkcvo
178abb0f93cSkardel	@if [ "`cat .buildcvo`" != "$(CVO)" ];then	\
179abb0f93cSkardel		echo "This directory was configured for `cat .buildcvo`"; \
180abb0f93cSkardel		echo "but this machine is a $(CVO)";	\
181abb0f93cSkardel		exit 1;	\
182abb0f93cSkardel	fi
183abb0f93cSkardel
184abb0f93cSkardelBHOST=`(hostname || uname -n)`
185abb0f93cSkardel
186abb0f93cSkardel.buildhost:
187abb0f93cSkardel	echo "$(BHOST)" > .buildhost
188abb0f93cSkardel
189abb0f93cSkardel.checkhost: .buildhost FRC.checkhost
190abb0f93cSkardel	@if [ "`cat .buildhost`" != "$(BHOST)" ];then	\
191abb0f93cSkardel		echo "Built on `cat .buildhost` but this is $(BHOST)"; \
192abb0f93cSkardel		echo " "; \
193abb0f93cSkardel	fi
194abb0f93cSkardel
195abb0f93cSkardelFRC.CommitLog FRC.distwarn FRC.checkcvo FRC.checkhost FRC.version:
196*4305584aSkardel	@: do-nothing action prevents any default
197abb0f93cSkardel
198abb0f93cSkardel# HMS: what was I trying to do with this?
199abb0f93cSkardel#dot.emacs: FRC.distwarn
200