X-Git-Url: http://andersk.mit.edu/gitweb/splint.git/blobdiff_plain/0feddd049c24a34791b6ce7a0eacb1474893272d..8fd556fb32e6886724d72e99270d429554f28ea6:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 0dffad8..c77eeda 100644 --- a/Makefile.am +++ b/Makefile.am @@ -24,10 +24,12 @@ ## To report a bug: splint-bug@splint.org ## +.PHONY: test + AUTOMAKE_OPTIONS = 1.5 foreign binaryfixscript = ./fixBinaryDist.sh -SUBDIRS = lib imports test doc src +SUBDIRS = src lib imports test doc binaryDir = bin binaryDirFiles = $(binaryDir)/Makefile.am $(binaryDir)/Makefile.in @@ -42,8 +44,17 @@ binaryDerivedFiles = Makefile.binary.in configure.binary configure.binary:configure.binary.ac -autoconf -oconfigure.binary configure.binary.ac + Makefile.binary.in:Makefile.binary.am -automake Makefile.binary + $(SED) -e s/Makefile\.binary/Makefile/ Makefile.binary.in > tMakefile.binary.in +# $(RM) Makefile.binary.in + $(CP) tMakefile.binary.in Makefile.binary.in +#drl add this hack 3/1/2003 +#make the generated makefile depend on Makefile not Makefile.binary + + + $(binaryDir)/Makefile.in: $(binaryDir)/Makefile.am -automake $(binaryDir)/Makefile @@ -56,8 +67,13 @@ bindist: $(binaryDerivedFiles) $(MAKE) $(RM) -f $(binaryDir)/splint $(CP) src/splint $(binaryDir)/splint + $(MV) install.html installSource.html + $(CP) doc/` uname | tr [A-Z] [a-z]`.html install.html $(MAKE) -e dist dh_script=$(binaryfixscript) SUBDIRS="$(binaryDir) lib imports doc" - $(MV) $(distdir).tar.gz $(distdir).`uname`.tgz + $(MV) $(distdir).tar.gz $(distdir).`uname`.tgz + $(MV) installSource.html install.html dist-hook: cd $(distdir); pwd; $(dh_script) + +