xref: /netbsd/external/bsd/ntp/dist/Makefile.am (revision 611b30b4)
12b3787f6SchristosACLOCAL_AMFLAGS = -I sntp/m4 -I sntp/libevent/m4 -I sntp/libopts/m4
2abb0f93cSkardel
3abb0f93cSkardelNULL =
4abb0f93cSkardel
520ef19a6Schristos# moved sntp first to get libtool and libevent built.
620ef19a6Schristos
72b3787f6SchristosSUBDIRS =		\
8abb0f93cSkardel	scripts		\
9abb0f93cSkardel	include		\
10abb0f93cSkardel	libntp		\
11*611b30b4Schristos	sntp		\
12abb0f93cSkardel	libparse	\
13abb0f93cSkardel	ntpd		\
14abb0f93cSkardel	ntpdate		\
15abb0f93cSkardel	ntpdc		\
16abb0f93cSkardel	ntpq		\
17abb0f93cSkardel	ntpsnmpd	\
18abb0f93cSkardel	parseutil	\
19abb0f93cSkardel	adjtimed	\
20abb0f93cSkardel	clockstuff	\
21abb0f93cSkardel	kernel		\
22abb0f93cSkardel	util		\
232b3787f6Schristos	tests		\
24abb0f93cSkardel	$(NULL)
25abb0f93cSkardel
263468963bSchristosDISTCHECK_CONFIGURE_FLAGS = -C --with-sntp --enable-local-libevent $(NTP_DCF)
27abb0f93cSkardel
28abb0f93cSkardelEXTRA_DIST =			\
294305584aSkardel	$(srcdir)/COPYRIGHT	\
30abb0f93cSkardel	ChangeLog		\
31abb0f93cSkardel	CommitLog		\
32abb0f93cSkardel	CommitLog-4.1.0		\
33abb0f93cSkardel	NEWS			\
34abb0f93cSkardel	NOTES.y2kfixes		\
35abb0f93cSkardel	README.bk		\
36abb0f93cSkardel	README.hackers		\
37b76cdf5cSchristos	README.leapsmear	\
38abb0f93cSkardel	README.patches		\
395c58df45Schristos	README.pullrequests	\
40abb0f93cSkardel	README.refclocks	\
41abb0f93cSkardel	README.versions		\
42abb0f93cSkardel	TODO			\
43abb0f93cSkardel	WHERE-TO-START		\
44abb0f93cSkardel	bootstrap		\
45abb0f93cSkardel	build			\
46abb0f93cSkardel	config.h.in		\
47abb0f93cSkardel	dot.emacs		\
48abb0f93cSkardel	flock-build		\
49abb0f93cSkardel	packageinfo.sh		\
50abb0f93cSkardel	readme.y2kfixes		\
51abb0f93cSkardel	results.y2kfixes	\
52abb0f93cSkardel	\
53abb0f93cSkardel	conf			\
54abb0f93cSkardel	html			\
55abb0f93cSkardel	lib/isc			\
561b6f2cd4Schristos	libjsmn			\
57abb0f93cSkardel	ports			\
58abb0f93cSkardel	\
59abb0f93cSkardel	deps-ver		\
60abb0f93cSkardel	\
61abb0f93cSkardel	$(NULL)
62abb0f93cSkardel
63abb0f93cSkardelCLEANFILES =
64abb0f93cSkardelDISTCLEANFILES = .gcc-warning
65abb0f93cSkardel
66abb0f93cSkardel# HMS: Keep .gcc-warning first, as that way it gets printed first.
67abb0f93cSkardelBUILT_SOURCES =				\
68abb0f93cSkardel	.gcc-warning			\
69abb0f93cSkardel	libtool				\
701b6f2cd4Schristos	html/.datecheck			\
71abb0f93cSkardel	$(srcdir)/COPYRIGHT		\
724305584aSkardel	$(srcdir)/.checkChangeLog	\
73abb0f93cSkardel	$(NULL)
74abb0f93cSkardel
751b6f2cd4Schristos.gcc-warning:
761b6f2cd4Schristos	@echo "Compiling with GCC now generates lots of new warnings."
771b6f2cd4Schristos	@echo " "
781b6f2cd4Schristos	@echo "Don't be concerned. They're just warnings."
791b6f2cd4Schristos	@echo " "
801b6f2cd4Schristos	@echo "Don't send bug reports about the warnings, either."
811b6f2cd4Schristos	@echo " "
821b6f2cd4Schristos	@echo "Feel free to send patches that fix these warnings, though."
831b6f2cd4Schristos	@echo " "
841b6f2cd4Schristos	@sleep 1
851b6f2cd4Schristos	@touch $@
861b6f2cd4Schristos
871b6f2cd4Schristoshtml/.datecheck: FRC.html
881b6f2cd4Schristos	cd $(srcdir)/html && \
891b6f2cd4Schristos	../scripts/build/checkHtmlFileDates
901b6f2cd4Schristos
911b6f2cd4Schristoslibtool: $(LIBTOOL_DEPS)
921b6f2cd4Schristos	./config.status --recheck
931b6f2cd4Schristos
941b6f2cd4Schristossntp/built-sources-only: FRC.sntp
951b6f2cd4Schristos	@cd sntp && $(MAKE) $(AM_MAKEFLAGS) built-sources-only
961b6f2cd4Schristos
97abb0f93cSkardel$(srcdir)/COPYRIGHT: $(srcdir)/html/copyright.html
984305584aSkardel	{ echo "This file is automatically generated from html/copyright.html" ; \
994305584aSkardel	  lynx -dump $(srcdir)/html/copyright.html ;} > COPYRIGHT.new \
1004305584aSkardel	&& mv -f COPYRIGHT.new $(srcdir)/COPYRIGHT
1014305584aSkardel
1024305584aSkardelCOPYRIGHT-please: $(srcdir)/COPYRIGHT
1034305584aSkardel	@: do-nothing action to prevent default \
1044305584aSkardel	   This target is needed by sntp/Makefile.am on decrepit \
1054305584aSkardel	   FreeBSD 6.x make which fails with "make COPYRIGHT" \
1064305584aSkardel	   configured in $(srcdir) but "make ./COPYRIGHT" succeeds. \
1074305584aSkardel	   Rather than determine our $(srcdir) from sntp/Makefile.am \
1084305584aSkardel	   COPYRIGHT-please serves as a fixed target.
109abb0f93cSkardel
1102b3787f6Schristos$(srcdir)/.checkChangeLog: $(srcdir)/ChangeLog $(srcdir)/scripts/build/checkChangeLog
111abb0f93cSkardel	cd $(srcdir) && \
1122b3787f6Schristos	./scripts/build/checkChangeLog
113abb0f93cSkardel
114abb0f93cSkardeldist-hook:
115abb0f93cSkardel	@find $(distdir) -type d -name SCCS -print | xargs rm -rf
116abb0f93cSkardel
1172b3787f6Schristosinstall-data-local:
118b76cdf5cSchristos	@echo "Installing stand-alone HTML documentation"
119b76cdf5cSchristos	@( cd $(srcdir) && \
120b76cdf5cSchristos		for i in `find html -type d | grep -v SCCS` ; \
121b76cdf5cSchristos		do $(INSTALL) -d $(DESTDIR)$(htmldir)/$$i ; done )
122b76cdf5cSchristos	@( cd $(srcdir) && \
123b76cdf5cSchristos		for i in `find html -type f | grep -v SCCS` ; \
124b76cdf5cSchristos		do $(INSTALL_DATA) $$i $(DESTDIR)$(htmldir)/$$i ; done )
1252b3787f6Schristos
1262b3787f6Schristosuninstall-local:
1272b3787f6Schristos		rm -rf $(DESTDIR)$(htmldir)/html
1282b3787f6Schristos
129abb0f93cSkardelCommitLog: FRC.CommitLog
130abb0f93cSkardel	cd $(srcdir)					\
1314305584aSkardel	&& $(PATH_TEST) -e CommitLog			\
132abb0f93cSkardel		-a SCCS/s.ChangeSet -ot CommitLog	\
1332b3787f6Schristos	|| scripts/build/genCommitLog
1342b3787f6Schristos
135abb0f93cSkardel# HMS: The following seems to be a work-in-progress...
136abb0f93cSkardel
1372b3787f6SchristosCVO=`$(srcdir)/sntp/libevent/build-aux/config.guess`
138abb0f93cSkardel
139abb0f93cSkardel.buildcvo:
140abb0f93cSkardel	echo "$(CVO)" > .buildcvo
141abb0f93cSkardel
142abb0f93cSkardel.checkcvo: .buildcvo FRC.checkcvo
143abb0f93cSkardel	@if [ "`cat .buildcvo`" != "$(CVO)" ];then	\
144abb0f93cSkardel		echo "This directory was configured for `cat .buildcvo`"; \
145abb0f93cSkardel		echo "but this machine is a $(CVO)";	\
146abb0f93cSkardel		exit 1;	\
147abb0f93cSkardel	fi
148abb0f93cSkardel
149abb0f93cSkardelBHOST=`(hostname || uname -n)`
150abb0f93cSkardel
151abb0f93cSkardel.buildhost:
152abb0f93cSkardel	echo "$(BHOST)" > .buildhost
153abb0f93cSkardel
154abb0f93cSkardel.checkhost: .buildhost FRC.checkhost
155abb0f93cSkardel	@if [ "`cat .buildhost`" != "$(BHOST)" ];then	\
156abb0f93cSkardel		echo "Built on `cat .buildhost` but this is $(BHOST)"; \
157abb0f93cSkardel		echo " "; \
158abb0f93cSkardel	fi
159abb0f93cSkardel
1601b6f2cd4SchristosFRC.CommitLog FRC.checkcvo FRC.checkhost FRC.distwarn FRC.html FRC.sntp:
1614305584aSkardel	@: do-nothing action prevents any default
162abb0f93cSkardel
163abb0f93cSkardel# HMS: what was I trying to do with this?
164abb0f93cSkardel#dot.emacs: FRC.distwarn
165