1 #AUTOMAKE_OPTIONS = util/ansi2knr foreign dist-tarZ no-dependencies
2 AUTOMAKE_OPTIONS = util/ansi2knr foreign 1.8
3 ACLOCAL_AMFLAGS= -I m4 -I libopts/m4
50 DISTCHECK_CONFIGURE_FLAGS= --with-arlib --enable-local-libopts
90 DISTCLEANFILES = .gcc-warning
92 #ETAGS_ARGS = $(srcdir)/Makefile.am $(srcdir)/configure.ac
93 ETAGS_ARGS = Makefile.am configure.ac
95 # HMS: make ports be the last directory...
96 # DIST_HOOK_DIRS = conf html scripts ports
98 # HMS: Keep .gcc-warning first, as that way it gets printed first.
99 BUILT_SOURCES = .gcc-warning $(srcdir)/COPYRIGHT $(srcdir)/version $(srcdir)/version.m4 $(srcdir)/include/version.def
101 $(srcdir)/COPYRIGHT: $(srcdir)/html/copyright.html
102 ( echo "This file is automatically generated from html/copyright.html" ; lynx -dump $(srcdir)/html/copyright.html ) > $(srcdir)/COPYRIGHT.new && mv $(srcdir)/COPYRIGHT.new $(srcdir)/COPYRIGHT
104 # HMS: The next bit is still suboptimal. If bk is present but this NTP
105 # repo is not a bk repo, we'll get an error message from the prs command.
106 # Unfortunately, I haven't found the necessary magic to redirect this error
107 # output to /dev/null under ancient/unique shells like the one Ultrix uses.
108 # We'll also get an error if srcdir or version is unwritable.
109 $(srcdir)/version: FRC.version
110 -(bk version) >/dev/null 2>&1 && \
112 x=`bk -R prs -hr+ -nd:I: ChangeSet` && \
113 y=`cat version 2>/dev/null` || true && \
114 case "$$x" in ''|$$y) ;; *) echo $$x > version ;; esac
116 $(srcdir)/version.m4: $(srcdir)/packageinfo.sh
118 ./scripts/genver version.m4
120 $(srcdir)/include/version.def: $(srcdir)/packageinfo.sh
122 ./scripts/genver include/version.def
125 @find $(distdir) -type d -name CVS -print | xargs rm -rf
126 @find $(distdir) -type d -name SCCS -print | xargs rm -rf
127 @chmod u+w $(distdir)/ports/winnt
128 @for i in `find $(distdir)/ports/winnt -type f -name '*.ds*' -print`; \
129 do chmod u+w $$i ; unix2dos $$i $$i; done
132 @echo "Compiling with GCC now generates lots of new warnings."
134 @echo "Don't be concerned. They're just warnings."
136 @echo "Don't send bug reports about the warnings, either."
138 @echo "Feel free to send patches that fix these warnings, though."
143 CommitLog: FRC.CommitLog
145 && /bin/test -e CommitLog \
146 -a SCCS/s.ChangeSet -ot CommitLog \
147 || scripts/genCommitLog
149 # HMS: The following seems to be a work-in-progress...
151 CVO=`$(srcdir)/config.guess`
154 echo "$(CVO)" > .buildcvo
156 .checkcvo: .buildcvo FRC.checkcvo
157 @if [ "`cat .buildcvo`" != "$(CVO)" ];then \
158 echo "This directory was configured for `cat .buildcvo`"; \
159 echo "but this machine is a $(CVO)"; \
163 BHOST=`(hostname || uname -n)`
166 echo "$(BHOST)" > .buildhost
168 .checkhost: .buildhost FRC.checkhost
169 @if [ "`cat .buildhost`" != "$(BHOST)" ];then \
170 echo "Built on `cat .buildhost` but this is $(BHOST)"; \
174 FRC.CommitLog FRC.distwarn FRC.checkcvo FRC.checkhost FRC.version:
176 # HMS: what was I trying to do with this?
177 #dot.emacs: FRC.distwarn