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