1ACLOCAL_AMFLAGS = -I sntp/m4 -I sntp/libevent/m4 -I sntp/libopts/m4 2 3NULL = 4 5# moved sntp first to get libtool and libevent built. 6 7SUBDIRS = \ 8 sntp \ 9 scripts \ 10 include \ 11 libntp \ 12 libparse \ 13 ntpd \ 14 ntpdate \ 15 ntpdc \ 16 ntpq \ 17 ntpsnmpd \ 18 parseutil \ 19 adjtimed \ 20 clockstuff \ 21 kernel \ 22 util \ 23 tests \ 24 $(NULL) 25 26DISTCHECK_CONFIGURE_FLAGS = -C --with-sntp 27 28EXTRA_DIST = \ 29 $(srcdir)/COPYRIGHT \ 30 ChangeLog \ 31 CommitLog \ 32 CommitLog-4.1.0 \ 33 NEWS \ 34 NOTES.y2kfixes \ 35 README.bk \ 36 README.hackers \ 37 README.patches \ 38 README.refclocks \ 39 README.versions \ 40 TODO \ 41 WHERE-TO-START \ 42 bootstrap \ 43 build \ 44 config.h.in \ 45 dot.emacs \ 46 flock-build \ 47 packageinfo.sh \ 48 readme.y2kfixes \ 49 results.y2kfixes \ 50 \ 51 conf \ 52 html \ 53 lib/isc \ 54 libjsmn \ 55 ports \ 56 \ 57 deps-ver \ 58 \ 59 $(NULL) 60 61CLEANFILES = 62DISTCLEANFILES = .gcc-warning 63 64# HMS: Keep .gcc-warning first, as that way it gets printed first. 65BUILT_SOURCES = \ 66 .gcc-warning \ 67 libtool \ 68 html/.datecheck \ 69 $(srcdir)/COPYRIGHT \ 70 $(srcdir)/.checkChangeLog \ 71 $(NULL) 72 73.gcc-warning: 74 @echo "Compiling with GCC now generates lots of new warnings." 75 @echo " " 76 @echo "Don't be concerned. They're just warnings." 77 @echo " " 78 @echo "Don't send bug reports about the warnings, either." 79 @echo " " 80 @echo "Feel free to send patches that fix these warnings, though." 81 @echo " " 82 @sleep 1 83 @touch $@ 84 85html/.datecheck: FRC.html 86 cd $(srcdir)/html && \ 87 ../scripts/build/checkHtmlFileDates 88 89libtool: $(LIBTOOL_DEPS) 90 ./config.status --recheck 91 92sntp/built-sources-only: FRC.sntp 93 @cd sntp && $(MAKE) $(AM_MAKEFLAGS) built-sources-only 94 95$(srcdir)/COPYRIGHT: $(srcdir)/html/copyright.html 96 { echo "This file is automatically generated from html/copyright.html" ; \ 97 lynx -dump $(srcdir)/html/copyright.html ;} > COPYRIGHT.new \ 98 && mv -f COPYRIGHT.new $(srcdir)/COPYRIGHT 99 100COPYRIGHT-please: $(srcdir)/COPYRIGHT 101 @: do-nothing action to prevent default \ 102 This target is needed by sntp/Makefile.am on decrepit \ 103 FreeBSD 6.x make which fails with "make COPYRIGHT" \ 104 configured in $(srcdir) but "make ./COPYRIGHT" succeeds. \ 105 Rather than determine our $(srcdir) from sntp/Makefile.am \ 106 COPYRIGHT-please serves as a fixed target. 107 108$(srcdir)/.checkChangeLog: $(srcdir)/ChangeLog $(srcdir)/scripts/build/checkChangeLog 109 cd $(srcdir) && \ 110 ./scripts/build/checkChangeLog 111 112dist-hook: 113 @find $(distdir) -type d -name SCCS -print | xargs rm -rf 114 115install-data-local: 116 ( cd $(srcdir) && find html -name SCCS -prune -o -type d \ 117 -exec $(INSTALL) -d $(DESTDIR)$(htmldir)/{} ";" ) 118 ( cd $(srcdir) && find html -name SCCS -prune -o -type f \ 119 -exec $(INSTALL_DATA) {} $(DESTDIR)$(htmldir)/{} ";" ) 120 121uninstall-local: 122 rm -rf $(DESTDIR)$(htmldir)/html 123 124CommitLog: FRC.CommitLog 125 cd $(srcdir) \ 126 && $(PATH_TEST) -e CommitLog \ 127 -a SCCS/s.ChangeSet -ot CommitLog \ 128 || scripts/build/genCommitLog 129 130# HMS: The following seems to be a work-in-progress... 131 132CVO=`$(srcdir)/sntp/libevent/build-aux/config.guess` 133 134.buildcvo: 135 echo "$(CVO)" > .buildcvo 136 137.checkcvo: .buildcvo FRC.checkcvo 138 @if [ "`cat .buildcvo`" != "$(CVO)" ];then \ 139 echo "This directory was configured for `cat .buildcvo`"; \ 140 echo "but this machine is a $(CVO)"; \ 141 exit 1; \ 142 fi 143 144BHOST=`(hostname || uname -n)` 145 146.buildhost: 147 echo "$(BHOST)" > .buildhost 148 149.checkhost: .buildhost FRC.checkhost 150 @if [ "`cat .buildhost`" != "$(BHOST)" ];then \ 151 echo "Built on `cat .buildhost` but this is $(BHOST)"; \ 152 echo " "; \ 153 fi 154 155FRC.CommitLog FRC.checkcvo FRC.checkhost FRC.distwarn FRC.html FRC.sntp: 156 @: do-nothing action prevents any default 157 158# HMS: what was I trying to do with this? 159#dot.emacs: FRC.distwarn 160