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 = \ 820ef19a6Schristos sntp \ 9abb0f93cSkardel scripts \ 10abb0f93cSkardel include \ 11abb0f93cSkardel libntp \ 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 262b3787f6SchristosDISTCHECK_CONFIGURE_FLAGS = -C --with-sntp 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 \ 37*b76cdf5cSchristos README.leapsmear \ 38abb0f93cSkardel README.patches \ 39abb0f93cSkardel README.refclocks \ 40abb0f93cSkardel README.versions \ 41abb0f93cSkardel TODO \ 42abb0f93cSkardel WHERE-TO-START \ 43abb0f93cSkardel bootstrap \ 44abb0f93cSkardel build \ 45abb0f93cSkardel config.h.in \ 46abb0f93cSkardel dot.emacs \ 47abb0f93cSkardel flock-build \ 48abb0f93cSkardel packageinfo.sh \ 49abb0f93cSkardel readme.y2kfixes \ 50abb0f93cSkardel results.y2kfixes \ 51abb0f93cSkardel \ 52abb0f93cSkardel conf \ 53abb0f93cSkardel html \ 54abb0f93cSkardel lib/isc \ 551b6f2cd4Schristos libjsmn \ 56abb0f93cSkardel ports \ 57abb0f93cSkardel \ 58abb0f93cSkardel deps-ver \ 59abb0f93cSkardel \ 60abb0f93cSkardel $(NULL) 61abb0f93cSkardel 62abb0f93cSkardelCLEANFILES = 63abb0f93cSkardelDISTCLEANFILES = .gcc-warning 64abb0f93cSkardel 65abb0f93cSkardel# HMS: Keep .gcc-warning first, as that way it gets printed first. 66abb0f93cSkardelBUILT_SOURCES = \ 67abb0f93cSkardel .gcc-warning \ 68abb0f93cSkardel libtool \ 691b6f2cd4Schristos html/.datecheck \ 70abb0f93cSkardel $(srcdir)/COPYRIGHT \ 714305584aSkardel $(srcdir)/.checkChangeLog \ 72abb0f93cSkardel $(NULL) 73abb0f93cSkardel 741b6f2cd4Schristos.gcc-warning: 751b6f2cd4Schristos @echo "Compiling with GCC now generates lots of new warnings." 761b6f2cd4Schristos @echo " " 771b6f2cd4Schristos @echo "Don't be concerned. They're just warnings." 781b6f2cd4Schristos @echo " " 791b6f2cd4Schristos @echo "Don't send bug reports about the warnings, either." 801b6f2cd4Schristos @echo " " 811b6f2cd4Schristos @echo "Feel free to send patches that fix these warnings, though." 821b6f2cd4Schristos @echo " " 831b6f2cd4Schristos @sleep 1 841b6f2cd4Schristos @touch $@ 851b6f2cd4Schristos 861b6f2cd4Schristoshtml/.datecheck: FRC.html 871b6f2cd4Schristos cd $(srcdir)/html && \ 881b6f2cd4Schristos ../scripts/build/checkHtmlFileDates 891b6f2cd4Schristos 901b6f2cd4Schristoslibtool: $(LIBTOOL_DEPS) 911b6f2cd4Schristos ./config.status --recheck 921b6f2cd4Schristos 931b6f2cd4Schristossntp/built-sources-only: FRC.sntp 941b6f2cd4Schristos @cd sntp && $(MAKE) $(AM_MAKEFLAGS) built-sources-only 951b6f2cd4Schristos 96abb0f93cSkardel$(srcdir)/COPYRIGHT: $(srcdir)/html/copyright.html 974305584aSkardel { echo "This file is automatically generated from html/copyright.html" ; \ 984305584aSkardel lynx -dump $(srcdir)/html/copyright.html ;} > COPYRIGHT.new \ 994305584aSkardel && mv -f COPYRIGHT.new $(srcdir)/COPYRIGHT 1004305584aSkardel 1014305584aSkardelCOPYRIGHT-please: $(srcdir)/COPYRIGHT 1024305584aSkardel @: do-nothing action to prevent default \ 1034305584aSkardel This target is needed by sntp/Makefile.am on decrepit \ 1044305584aSkardel FreeBSD 6.x make which fails with "make COPYRIGHT" \ 1054305584aSkardel configured in $(srcdir) but "make ./COPYRIGHT" succeeds. \ 1064305584aSkardel Rather than determine our $(srcdir) from sntp/Makefile.am \ 1074305584aSkardel COPYRIGHT-please serves as a fixed target. 108abb0f93cSkardel 1092b3787f6Schristos$(srcdir)/.checkChangeLog: $(srcdir)/ChangeLog $(srcdir)/scripts/build/checkChangeLog 110abb0f93cSkardel cd $(srcdir) && \ 1112b3787f6Schristos ./scripts/build/checkChangeLog 112abb0f93cSkardel 113abb0f93cSkardeldist-hook: 114abb0f93cSkardel @find $(distdir) -type d -name SCCS -print | xargs rm -rf 115abb0f93cSkardel 1162b3787f6Schristosinstall-data-local: 117*b76cdf5cSchristos @echo "Installing stand-alone HTML documentation" 118*b76cdf5cSchristos @( cd $(srcdir) && \ 119*b76cdf5cSchristos for i in `find html -type d | grep -v SCCS` ; \ 120*b76cdf5cSchristos do $(INSTALL) -d $(DESTDIR)$(htmldir)/$$i ; done ) 121*b76cdf5cSchristos @( cd $(srcdir) && \ 122*b76cdf5cSchristos for i in `find html -type f | grep -v SCCS` ; \ 123*b76cdf5cSchristos do $(INSTALL_DATA) $$i $(DESTDIR)$(htmldir)/$$i ; done ) 1242b3787f6Schristos 1252b3787f6Schristosuninstall-local: 1262b3787f6Schristos rm -rf $(DESTDIR)$(htmldir)/html 1272b3787f6Schristos 128abb0f93cSkardelCommitLog: FRC.CommitLog 129abb0f93cSkardel cd $(srcdir) \ 1304305584aSkardel && $(PATH_TEST) -e CommitLog \ 131abb0f93cSkardel -a SCCS/s.ChangeSet -ot CommitLog \ 1322b3787f6Schristos || scripts/build/genCommitLog 1332b3787f6Schristos 134abb0f93cSkardel# HMS: The following seems to be a work-in-progress... 135abb0f93cSkardel 1362b3787f6SchristosCVO=`$(srcdir)/sntp/libevent/build-aux/config.guess` 137abb0f93cSkardel 138abb0f93cSkardel.buildcvo: 139abb0f93cSkardel echo "$(CVO)" > .buildcvo 140abb0f93cSkardel 141abb0f93cSkardel.checkcvo: .buildcvo FRC.checkcvo 142abb0f93cSkardel @if [ "`cat .buildcvo`" != "$(CVO)" ];then \ 143abb0f93cSkardel echo "This directory was configured for `cat .buildcvo`"; \ 144abb0f93cSkardel echo "but this machine is a $(CVO)"; \ 145abb0f93cSkardel exit 1; \ 146abb0f93cSkardel fi 147abb0f93cSkardel 148abb0f93cSkardelBHOST=`(hostname || uname -n)` 149abb0f93cSkardel 150abb0f93cSkardel.buildhost: 151abb0f93cSkardel echo "$(BHOST)" > .buildhost 152abb0f93cSkardel 153abb0f93cSkardel.checkhost: .buildhost FRC.checkhost 154abb0f93cSkardel @if [ "`cat .buildhost`" != "$(BHOST)" ];then \ 155abb0f93cSkardel echo "Built on `cat .buildhost` but this is $(BHOST)"; \ 156abb0f93cSkardel echo " "; \ 157abb0f93cSkardel fi 158abb0f93cSkardel 1591b6f2cd4SchristosFRC.CommitLog FRC.checkcvo FRC.checkhost FRC.distwarn FRC.html FRC.sntp: 1604305584aSkardel @: do-nothing action prevents any default 161abb0f93cSkardel 162abb0f93cSkardel# HMS: what was I trying to do with this? 163abb0f93cSkardel#dot.emacs: FRC.distwarn 164