1 ## Process this file with automake to create Makefile.in. -*-Makefile-*-
3 ## Makefile for Splint 3.0
4 ## For more information: http://www.splint.org
6 ## Copyright (C) 2001-2 University of Virginia,
7 ## Massachusetts Institute of Technology
9 ## This program is free software; you can redistribute it and/or modify it
10 ## under the terms of the GNU General Public License as published by the
11 ## Free Software Foundation; either version 2 of the License, or (at your
12 ## option) any later version.
14 ## This program is distributed in the hope that it will be useful, but
15 ## WITHOUT ANY WARRANTY; without even the implied warranty of
16 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 ## General Public License for more details.
19 ## The GNU General Public License is available from http://www.gnu.org/ or
20 ## the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
21 ## MA 02111-1307, USA.
23 ## For information on spint: info@splint.org
24 ## To report a bug: splint-bug@splint.org
29 AUTOMAKE_OPTIONS = 1.5 foreign
31 binaryfixscript = ./fixBinaryDist.sh
32 SUBDIRS = src lib imports test doc
35 binaryDirFiles = $(binaryDir)/Makefile.am $(binaryDir)/Makefile.in
37 binaryBuiltFiles = Makefile.binary.am configure.binary.ac
39 #include these in case we're trying to build on a systems
40 #without the bleeding edge versions of automake and autoconf
41 binaryDerivedFiles = Makefile.binary.in configure.binary
43 #try to remake these but don't stop if it fails.
44 configure.binary:configure.binary.ac
45 -autoconf -oconfigure.binary configure.binary.ac
47 Makefile.binary.in:Makefile.binary.am
48 -automake Makefile.binary
49 $(SED) -e s/Makefile\.binary/Makefile/ Makefile.binary.in > tMakefile.binary.in
50 # $(RM) Makefile.binary.in
51 $(CP) tMakefile.binary.in Makefile.binary.in
52 #drl add this hack 3/1/2003
53 #make the generated makefile depend on Makefile not Makefile.binary
55 $(binaryDir)/Makefile.in: $(binaryDir)/Makefile.am
56 -automake $(binaryDir)/Makefile
58 EXTRA_DIST = $(binaryfixscript) $(binaryBuiltFiles) $(binaryDerivedFiles) $(binaryDirFiles) install.html
60 preDist: $(binaryDir)/Makefile.in $(binaryDerivedFiles)
62 bindist: $(binaryDerivedFiles)
64 $(RM) -f $(binaryDir)/splint
65 $(CP) src/splint $(binaryDir)/splint
66 $(MV) install.html installSource.html
67 $(CP) doc/` uname | tr [A-Z] [a-z]`.html install.html
68 $(MAKE) -e dist dh_script=$(binaryfixscript) SUBDIRS="$(binaryDir) lib imports doc"
69 $(MV) $(distdir).tar.gz $(distdir).`uname`.tgz
70 $(MV) installSource.html install.html
73 cd $(distdir); pwd; $(dh_script)