NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
+build_alias = @build_alias@
+build_triplet = @build@
host_alias = @host_alias@
host_triplet = @host@
+target_alias = @target_alias@
+target_triplet = @target@
AMTAR = @AMTAR@
AWK = @AWK@
BISON = @BISON@
AUTOMAKE_OPTIONS = 1.5 foreign
-SUBDIRS = src lib imports test
+binaryfixscript = ./fixBinaryDist.sh
+SUBDIRS = lib imports test doc src
+
+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
uninstall-info-recursive all-recursive install-data-recursive \
install-exec-recursive installdirs-recursive install-recursive \
uninstall-recursive check-recursive installcheck-recursive
-DIST_COMMON = README ./stamp-h.in Makefile.am Makefile.in acinclude.m4 \
- aclocal.m4 config.hin config/config.guess config/config.sub \
- config/depcomp config/install-sh config/missing \
- config/mkinstalldirs configure configure.ac
+DIST_COMMON = README ./stamp-h.in ChangeLog Makefile.am Makefile.in \
+ acinclude.m4 aclocal.m4 config.hin config/config.guess \
+ config/config.sub config/depcomp config/install-sh \
+ config/missing config/mkinstalldirs configure configure.ac
DIST_SUBDIRS = $(SUBDIRS)
all: config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive
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,/[^/]*$$,,'`; \
|| 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 \
uninstall uninstall-am uninstall-info-am \
uninstall-info-recursive uninstall-recursive
+
+#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: