X-Git-Url: http://andersk.mit.edu/gitweb/splint.git/blobdiff_plain/92b2ba2ca863d79bdef234dacc4c49f8731b5cb1..d0b80d80b955831748621710bc1a6ae866a2b45c:/Makefile.in diff --git a/Makefile.in b/Makefile.in index f2ceb6e..1ec75b4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -80,6 +80,7 @@ MV = @MV@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ RM = @RM@ +SED = @SED@ VERSION = @VERSION@ am__include = @am__include@ am__quote = @am__quote@ @@ -87,7 +88,19 @@ install_sh = @install_sh@ AUTOMAKE_OPTIONS = 1.5 foreign +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 + +EXTRA_DIST = $(binaryfixscript) $(binaryBuiltFiles) $(binaryDerivedFiles) $(binaryDirFiles) install.html subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs @@ -253,7 +266,7 @@ GZIP_ENV = --best distdir: $(DISTFILES) -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir) mkdir $(distdir) - $(mkinstalldirs) $(distdir)/config + $(mkinstalldirs) $(distdir)/$(binaryDir) $(distdir)/config @for file in $(DISTFILES); do \ if test -f $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ @@ -282,6 +295,9 @@ distdir: $(DISTFILES) || exit 1; \ fi; \ done + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="${top_distdir}" distdir="$(distdir)" \ + dist-hook -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ @@ -407,6 +423,33 @@ uninstall-info: uninstall-info-recursive uninstall uninstall-am uninstall-info-am \ uninstall-info-recursive uninstall-recursive + +.PHONY: test + +#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 + +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) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: