X-Git-Url: http://andersk.mit.edu/gitweb/splint.git/blobdiff_plain/3e3ec46998ea67d6742eb30afc16058c5537004e..refs/heads/loop-anlaysis-1-0:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 83750b9..38450a1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,10 +20,51 @@ ## the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, ## MA 02111-1307, USA. ## -## For information on lclint: lclint-request@cs.virginia.edu -## To report a bug: lclint-bug@cs.virginia.edu +## For information on spint: info@splint.org +## To report a bug: splint-bug@splint.org ## +.PHONY: test + AUTOMAKE_OPTIONS = 1.5 foreign -SUBDIRS = src lib imports test +binaryfixscript = ./fixBinaryDist.sh +SUBDIRS = src lib imports test doc + +binaryDir = bin +binaryDirFiles = $(binaryDir)/Makefile.am $(binaryDir)/Makefile.in + +binaryBuiltFiles = Makefile.binary.am configure.binary.ac + +#include these in case we're trying to build on a systems +#without the bleeding edge versions of automake and autoconf +binaryDerivedFiles = Makefile.binary.in configure.binary + +#try to remake these but don't stop if it fails. +configure.binary:configure.binary.ac + -autoconf -oconfigure.binary configure.binary.ac + +Makefile.binary.in:Makefile.binary.am + -automake Makefile.binary + +$(binaryDir)/Makefile.in: $(binaryDir)/Makefile.am + -automake $(binaryDir)/Makefile + +EXTRA_DIST = $(binaryfixscript) $(binaryBuiltFiles) $(binaryDerivedFiles) $(binaryDirFiles) install.html + +preDist: $(binaryDir)/Makefile.in $(binaryDerivedFiles) + +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) installSource.html install.html + +dist-hook: + cd $(distdir); pwd; $(dh_script) + +