]> andersk Git - splint.git/blobdiff - Makefile.am
Added files to generate a binary package by doing make bindist
[splint.git] / Makefile.am
index 4dac42f5b7746c81f747442d5d4adb89915ce6ed..9112557611f7fcb95a81e747f9cff4a0ecd5ffbe 100644 (file)
 
 AUTOMAKE_OPTIONS = 1.5 foreign
 
-SUBDIRS = src lib imports test doc
+binaryfixscript = ./fixBinaryDist.sh
+SUBDIRS =   lib imports test doc src
 
+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) preBuilt/Makefile.am preBuilt/Makefile.in
+
+bindist:
+       $(MAKE)
+       $(CP) src/splint preBuilt/splint
+       $(MAKE) -e dist dh_script=$(binaryfixscript) SUBDIRS="preBuilt lib imports  doc"
+
+dist-hook:
+       cd $(distdir);  pwd; $(dh_script)
This page took 0.037954 seconds and 4 git commands to generate.