File: Makefile.am

package info (click to toggle)
splint 1:3.1.2+dfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 21,004 kB
  • sloc: ansic: 150,869; yacc: 3,465; sh: 3,034; makefile: 2,157; lex: 412
file content (77 lines) | stat: -rw-r--r-- 2,634 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
## Process this file with automake to create Makefile.in. -*-Makefile-*-
##
## Makefile for Splint 3.0
## For more information: http://www.splint.org
##
## Copyright (C) 2001-2 University of Virginia,
##         Massachusetts Institute of Technology
##
## This program is free software; you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by the
## Free Software Foundation; either version 2 of the License, or (at your
## option) any later version.
## 
## This program is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
## General Public License for more details.
## 
## The GNU General Public License is available from http://www.gnu.org/ or
## the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
## MA 02111-1307, USA.
##
## For information on spint: info@splint.org
## To report a bug: splint-bug@splint.org
## 

.PHONY: test

AUTOMAKE_OPTIONS = 1.5 foreign

CONFIG_CLEAN_FILES = bin/Makefile

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

#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
	$(SED) -e s/Makefile\.binary/Makefile/ Makefile.binary.in > tMakefile.binary.in
#	$(RM) Makefile.binary.in
	$(CP) tMakefile.binary.in Makefile.binary.in
#drl add this hack 3/1/2003
#make the generated makefile depend on Makefile not Makefile.binary

$(binaryDir)/Makefile.in: $(binaryDir)/Makefile.am
	-automake $(binaryDir)/Makefile

EXTRA_DIST = $(binaryfixscript) $(binaryBuiltFiles) $(binaryDerivedFiles) $(binaryDirFiles) install.html

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)