]>
Commit | Line | Data |
---|---|---|
8fe44445 | 1 | ## Process this file with automake to create Makefile.in. -*-Makefile-*- |
8fe44445 | 2 | ## |
3e3ec469 | 3 | ## Makefile for Splint 3.0 |
4 | ## For more information: http://www.splint.org | |
5 | ## | |
6 | ## Copyright (C) 2001-2 University of Virginia, | |
8fe44445 | 7 | ## Massachusetts Institute of Technology |
8 | ## | |
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. | |
13 | ## | |
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. | |
18 | ## | |
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. | |
22 | ## | |
155af98d | 23 | ## For information on spint: info@splint.org |
24 | ## To report a bug: splint-bug@splint.org | |
3e3ec469 | 25 | ## |
8fe44445 | 26 | |
27 | AUTOMAKE_OPTIONS = 1.5 foreign | |
28 | ||
363a5c93 | 29 | binaryfixscript = ./fixBinaryDist.sh |
30 | SUBDIRS = lib imports test doc src | |
155af98d | 31 | |
fc97bef4 | 32 | binaryDir = bin |
33 | binaryDirFiles = $(binaryDir)/Makefile.am $(binaryDir)/Makefile.in | |
34 | ||
363a5c93 | 35 | binaryBuiltFiles = Makefile.binary.am configure.binary.ac |
fc97bef4 | 36 | |
363a5c93 | 37 | #include these in case we're trying to build on a systems |
38 | #without the bleeding edge versions of automake and autoconf | |
39 | binaryDerivedFiles = Makefile.binary.in configure.binary | |
40 | ||
fc97bef4 | 41 | #try to remake these but don't stop if it fails. |
42 | configure.binary:configure.binary.ac | |
43 | -autoconf -oconfigure.binary configure.binary.ac | |
44 | ||
45 | Makefile.binary.in:Makefile.binary.am | |
46 | -automake Makefile.binary | |
47 | ||
48 | $(binaryDir)/Makefile.in: $(binaryDir)/Makefile.am | |
49 | -automake $(binaryDir)/Makefile | |
50 | ||
0feddd04 | 51 | EXTRA_DIST = $(binaryfixscript) $(binaryBuiltFiles) $(binaryDerivedFiles) $(binaryDirFiles) install.html |
fc97bef4 | 52 | |
53 | preDist: $(binaryDir)/Makefile.in $(binaryDerivedFiles) | |
363a5c93 | 54 | |
fc97bef4 | 55 | bindist: $(binaryDerivedFiles) |
363a5c93 | 56 | $(MAKE) |
fc97bef4 | 57 | $(RM) -f $(binaryDir)/splint |
58 | $(CP) src/splint $(binaryDir)/splint | |
59 | $(MAKE) -e dist dh_script=$(binaryfixscript) SUBDIRS="$(binaryDir) lib imports doc" | |
60 | $(MV) $(distdir).tar.gz $(distdir).`uname`.tgz | |
363a5c93 | 61 | |
62 | dist-hook: | |
63 | cd $(distdir); pwd; $(dh_script) |