annotate lib/swig/swigwin-2.0.11/Makefile.in @ 2575:a76d408c5132 tip

DrawTranslucent -> DrawTextureGrayShade Removed old texture drawing stuff
author a.parshin
date Wed, 09 Mar 2016 01:39:52 +0200
parents b3009adc0e2f
children
rev   line source
1899
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1 #######################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
2 # SWIG top level Makefile
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
3 #######################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
4
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
5 .PHONY: ccache source swig
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
6
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
7 prefix = @prefix@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
8 exec_prefix = @exec_prefix@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
9 srcdir = @srcdir@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
10 datarootdir = @datarootdir@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
11
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
12 ##############################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
13 # Compiler and system configuration
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
14 ##############################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
15
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
16 SHELL = /bin/sh
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
17 SWIG_LIB = @swig_lib@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
18 BIN_DIR = @bindir@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
19 ENABLE_CCACHE = @ENABLE_CCACHE@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
20 TARGET_NOEXE= swig
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
21 TARGET = $(TARGET_NOEXE)@EXEEXT@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
22 SOURCE = Source
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
23 CCACHE = CCache
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
24 DOCS = Doc/Manual
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
25 RUNPIPE = \>/dev/null
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
26
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
27 swig: libfiles source ccache
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
28
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
29 source:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
30 @cd $(SOURCE) && $(MAKE)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
31
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
32 ccache:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
33 test -z "$(ENABLE_CCACHE)" || (cd $(CCACHE) && $(MAKE))
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
34
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
35 libfiles: $(srcdir)/Lib/swigwarn.swg
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
36
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
37 # Files required just for the tarball
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
38 maintainer: libfiles
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
39 @cd $(SOURCE) && $(MAKE) CParse/parser.h
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
40
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
41 #####################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
42 # Documentation
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
43 #####################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
44
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
45 docs: docs-main docs-ccache
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
46
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
47 docs-main:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
48 @echo making docs
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
49 @test -d $(DOCS) || exit 0; cd $(DOCS) && $(MAKE) all clean-baks
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
50
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
51 docs-ccache:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
52 test -z "$(ENABLE_CCACHE)" || (cd $(CCACHE) && $(MAKE) docs)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
53
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
54 #####################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
55 # All the languages SWIG speaks (when it wants to)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
56 #####################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
57
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
58 skip-tcl = test -n "@SKIP_TCL@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
59 skip-perl5 = test -n "@SKIP_PERL5@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
60 skip-python = test -n "@SKIP_PYTHON@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
61 skip-java = test -n "@SKIP_JAVA@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
62 skip-guile = test -n "@SKIP_GUILE@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
63 skip-mzscheme = test -n "@SKIP_MZSCHEME@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
64 skip-ruby = test -n "@SKIP_RUBY@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
65 skip-php = test -n "@SKIP_PHP@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
66 skip-ocaml = test -n "@SKIP_OCAML@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
67 skip-octave = test -n "@SKIP_OCTAVE@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
68 skip-pike = test -n "@SKIP_PIKE@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
69 skip-chicken = test -n "@SKIP_CHICKEN@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
70 skip-csharp = test -n "@SKIP_CSHARP@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
71 skip-modula3 = test -n "@SKIP_MODULA3@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
72 skip-lua = test -n "@SKIP_LUA@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
73 skip-allegrocl = test -n "@SKIP_ALLEGROCL@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
74 skip-clisp = test -n "@SKIP_CLISP@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
75 skip-cffi = test -n "@SKIP_CFFI@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
76 skip-uffi = test -n "@SKIP_UFFI@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
77 skip-r = test -n "@SKIP_R@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
78 skip-go = test -n "@SKIP_GO@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
79 skip-d = test -n "@SKIP_D@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
80
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
81 # Additional dependencies for some tests
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
82 skip-gcj = test -n "@SKIP_GCJ@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
83 skip-android = test -n "@SKIP_ANDROID@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
84
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
85 #####################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
86 # CHECK
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
87 #####################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
88
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
89 ACTION = check
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
90 NOSKIP =
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
91
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
92 chk-set-swiglib = SWIG_LIB=@ROOT_DIR@/Lib
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
93 chk-set-swig = SWIG=@ROOT_DIR@/$(TARGET)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
94 chk-set-env = $(chk-set-swiglib) $(chk-set-swig)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
95
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
96 check-aliveness:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
97 test -x ./$(TARGET)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
98 ./$(TARGET) -version
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
99 ./$(TARGET) -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
100 @$(skip-tcl) || ./$(TARGET) -tcl -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
101 @$(skip-perl5) || ./$(TARGET) -perl -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
102 @$(skip-python) || ./$(TARGET) -python -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
103 @$(skip-java) || ./$(TARGET) -java -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
104 @$(skip-guile) || ./$(TARGET) -guile -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
105 @$(skip-mzscheme) || ./$(TARGET) -mzscheme -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
106 @$(skip-ruby) || ./$(TARGET) -ruby -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
107 @$(skip-ocaml) || ./$(TARGET) -ocaml -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
108 @$(skip-octave) || ./$(TARGET) -octave -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
109 @$(skip-php) || ./$(TARGET) -php -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
110 @$(skip-pike) || ./$(TARGET) -pike -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
111 @$(skip-chicken) || ./$(TARGET) -chicken -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
112 @$(skip-csharp) || ./$(TARGET) -csharp -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
113 @$(skip-modula3) || ./$(TARGET) -modula3 -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
114 @$(skip-allegrocl)|| ./$(TARGET) -allegrocl -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
115 @$(skip-clisp) || ./$(TARGET) -clisp -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
116 @$(skip-uffi) || ./$(TARGET) -uffi -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
117 @$(skip-cffi) || ./$(TARGET) -cffi -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
118 @$(skip-lua) || ./$(TARGET) -lua -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
119 @$(skip-r) || ./$(TARGET) -r -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
120 @$(skip-go) || ./$(TARGET) -go -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
121 @$(skip-d) || ./$(TARGET) -d -help
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
122
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
123 check-ccache:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
124 test -z "$(ENABLE_CCACHE)" || (cd $(CCACHE) && $(MAKE) check)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
125
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
126 # Checks / displays versions of each target language
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
127 check-versions: \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
128 check-tcl-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
129 check-perl5-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
130 check-python-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
131 check-java-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
132 check-android-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
133 check-guile-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
134 check-mzscheme-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
135 check-ruby-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
136 check-ocaml-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
137 check-octave-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
138 check-php-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
139 check-pike-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
140 check-chicken-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
141 check-csharp-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
142 check-modula3-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
143 check-lua-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
144 check-allegrocl-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
145 check-clisp-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
146 check-uffi-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
147 check-cffi-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
148 check-r-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
149 check-go-version \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
150 check-d-version
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
151
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
152 # all examples
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
153 check-%-version :
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
154 @if test -z "$(skip-$*)"; then \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
155 echo $* unknown; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
156 exit 1; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
157 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
158 @if $(skip-$*); then \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
159 echo skipping $* version; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
160 else \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
161 echo showing $* version; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
162 (cd Examples && $(MAKE) -s $*_version) \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
163 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
164
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
165 # Checks examples for compilation (does not run them)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
166 check-examples: \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
167 check-tcl-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
168 check-perl5-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
169 check-python-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
170 check-java-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
171 check-android-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
172 check-guile-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
173 check-mzscheme-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
174 check-ruby-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
175 check-ocaml-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
176 check-octave-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
177 check-php-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
178 check-pike-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
179 check-chicken-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
180 check-csharp-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
181 check-modula3-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
182 check-lua-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
183 check-allegrocl-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
184 check-clisp-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
185 check-uffi-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
186 check-cffi-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
187 check-r-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
188 check-go-examples \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
189 check-d-examples
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
190
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
191 tcl_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/tcl/check.list)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
192 perl5_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/perl5/check.list)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
193 python_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/python/check.list)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
194 java_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/java/check.list)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
195 android_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/android/check.list)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
196 guile_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/guile/check.list)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
197 mzscheme_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/mzscheme/check.list)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
198 ruby_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/ruby/check.list)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
199 ocaml_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/ocaml/check.list)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
200 octave_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/octave/check.list)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
201 php_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/php/check.list)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
202 pike_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/pike/check.list)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
203 chicken_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/chicken/check.list)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
204 csharp_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/csharp/check.list)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
205 modula3_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/modula3/check.list)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
206 lua_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/lua/check.list)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
207 allegrocl_examples :=
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
208 clisp_examples :=
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
209 uffi_examples :=
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
210 cffi_examples :=
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
211 r_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/r/check.list)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
212 go_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/go/check.list)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
213 d_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/d/check.list)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
214
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
215 # all examples
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
216 check-%-examples :
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
217 @if test -z "$(skip-$*)"; then \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
218 echo $* unknown; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
219 exit 1; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
220 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
221 @if $(skip-$*); then \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
222 echo skipping $* $(ACTION); \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
223 elif test -z "$($(strip $*_examples))"; then \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
224 echo empty $* $(ACTION); \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
225 else \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
226 $(MAKE) -k -s $($*_examples:=.actionexample) LANGUAGE=$* ACTION=$(ACTION); \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
227 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
228
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
229 # individual example
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
230 %.actionexample:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
231 @echo $(ACTION)ing Examples/$(LANGUAGE)/$*
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
232 @(cd Examples/$(LANGUAGE)/$* && $(MAKE) -s $(chk-set-env) $(ACTION) RUNPIPE=$(RUNPIPE))
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
233
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
234 # gcj individual example
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
235 java.actionexample:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
236 @if $(skip-gcj); then \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
237 echo "skipping Examples/$(LANGUAGE)/java $(ACTION) (gcj test)"; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
238 else \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
239 echo $(ACTION)ing Examples/$(LANGUAGE)/java; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
240 (cd Examples/$(LANGUAGE)/java && $(MAKE) -s $(chk-set-env) $(ACTION)) \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
241 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
242
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
243 # Checks testcases in the test-suite excluding those which are known to be broken
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
244 check-test-suite: \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
245 check-tcl-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
246 check-perl5-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
247 check-python-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
248 check-java-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
249 check-guile-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
250 check-mzscheme-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
251 check-ruby-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
252 check-ocaml-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
253 check-octave-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
254 check-php-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
255 check-pike-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
256 check-csharp-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
257 check-modula3-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
258 check-lua-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
259 check-allegrocl-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
260 check-clisp-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
261 check-uffi-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
262 check-cffi-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
263 check-chicken-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
264 check-r-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
265 check-go-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
266 check-d-test-suite
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
267
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
268 check-%-test-suite:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
269 @if test -z "$(skip-$*)"; then \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
270 echo $* unknown; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
271 exit 1; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
272 fi
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
273 @passed=true; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
274 dir="Examples/test-suite/$*"; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
275 if $(skip-$*) -a "$(NOSKIP)" != "1"; then \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
276 echo skipping $* test-suite $(ACTION); \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
277 elif [ ! -d $$dir ]; then \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
278 echo warning: cannot $(ACTION) $* test-suite "(no dir $$dir)";\
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
279 else \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
280 echo $(ACTION)ing $* test-suite; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
281 (cd $$dir && $(MAKE) -k -s $(ACTION)) \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
282 || passed=false; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
283 fi; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
284 test $$passed = true
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
285
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
286 # Partial test-suite check - it only invokes SWIG, ie no compilation and no runtime testing
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
287 partialcheck-test-suite:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
288 @$(MAKE) -k -s check-test-suite ACTION=partialcheck NOSKIP=1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
289
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
290 partialcheck-%-test-suite:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
291 @$(MAKE) -k -s check-$*-test-suite ACTION=partialcheck NOSKIP=1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
292
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
293 check: check-aliveness check-ccache check-versions check-examples check-test-suite
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
294
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
295 # Run known-to-be-broken as well as not broken testcases in the test-suite
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
296 all-test-suite: \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
297 all-tcl-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
298 all-perl5-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
299 all-python-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
300 all-java-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
301 all-guile-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
302 all-mzscheme-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
303 all-ruby-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
304 all-ocaml-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
305 all-octave-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
306 all-php-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
307 all-pike-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
308 all-csharp-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
309 all-modula3-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
310 all-lua-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
311 all-allegrocl-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
312 all-clisp-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
313 all-uffi-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
314 all-cffi-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
315 all-chicken-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
316 all-r-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
317 all-go-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
318 all-d-test-suite
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
319
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
320 all-%-test-suite:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
321 @$(MAKE) -k -s check-$*-test-suite ACTION=all
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
322
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
323 # Run known-to-be-broken testcases in the test-suite
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
324 broken-test-suite: \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
325 broken-tcl-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
326 broken-perl5-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
327 broken-python-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
328 broken-java-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
329 broken-guile-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
330 broken-mzscheme-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
331 broken-ruby-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
332 broken-ocaml-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
333 broken-octave-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
334 broken-php-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
335 broken-pike-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
336 broken-csharp-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
337 broken-modula3-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
338 broken-lua-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
339 broken-allegrocl-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
340 broken-clisp-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
341 broken-uffi-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
342 broken-cffi-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
343 broken-chicken-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
344 broken-r-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
345 broken-go-test-suite \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
346 broken-d-test-suite
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
347
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
348 broken-%-test-suite:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
349 @$(MAKE) -k -s check-$*-test-suite ACTION=broken
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
350
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
351 #####################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
352 # CLEAN
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
353 #####################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
354
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
355 clean: clean-objects clean-examples clean-test-suite
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
356
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
357 clean-objects: clean-source clean-ccache
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
358
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
359 clean-source:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
360 @echo cleaning Source
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
361 @cd $(SOURCE) && $(MAKE) -s clean
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
362 @rm -f $(TARGET)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
363
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
364 clean-examples:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
365 @$(MAKE) -k -s check-examples ACTION=clean
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
366
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
367 clean-test-suite:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
368 @$(MAKE) -k -s check-test-suite ACTION=clean NOSKIP=1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
369
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
370 clean-%-examples:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
371 @$(MAKE) -k -s check-$*-examples ACTION=clean
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
372
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
373 clean-%-test-suite:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
374 @$(MAKE) -k -s check-$*-test-suite ACTION=clean NOSKIP=1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
375
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
376 clean-ccache:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
377 test -z "$(ENABLE_CCACHE)" || (cd $(CCACHE) && $(MAKE) -s clean)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
378
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
379 #####################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
380 # DISTCLEAN - clean what configure built
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
381 #####################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
382
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
383 DISTCLEAN-DEAD = config.status config.log config.cache swig.spec Makefile mkmf.log libtool preinst-swig Lib/ocaml/swigp4.ml
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
384
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
385 distclean-helper: distclean-test-suite distclean-examples distclean-dead
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
386
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
387 distclean: distclean-source distclean-ccache distclean-helper
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
388
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
389 distclean-source:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
390 @echo distcleaning Source
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
391 @cd $(SOURCE) && $(MAKE) -s distclean
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
392 @rm -f $(TARGET)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
393
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
394 distclean-test-suite:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
395 @echo distcleaning Examples/test-suite
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
396 @$(MAKE) -k -s check-test-suite ACTION=distclean NOSKIP=1
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
397
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
398 distclean-examples:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
399 @echo distcleaning Examples
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
400 @$(MAKE) -k -s clean-examples
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
401 @cd Examples && $(MAKE) -k -s distclean
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
402
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
403 distclean-ccache:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
404 @test -z "$(ENABLE_CCACHE)" || (cd $(CCACHE) && $(MAKE) -s distclean)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
405
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
406 distclean-dead:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
407 rm -f $(DISTCLEAN-DEAD)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
408 rm -rf autom4te.cache
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
409
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
410 #####################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
411 # MAINTAINER CLEAN - clean what the maintainer builds and ships in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
412 # the distributed tarball - should not delete anything needed to run
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
413 # ./configure && make
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
414 #####################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
415
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
416 maintainer-clean:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
417 @echo maintainer-cleaning source
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
418 @cd $(SOURCE) && $(MAKE) -k -s maintainer-clean
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
419 @echo maintainer-cleaning CCache
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
420 @test -z "$(ENABLE_CCACHE)" || (cd $(CCACHE) && $(MAKE) -s maintainer-clean)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
421 @echo maintainer-cleaning docs
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
422 @cd $(DOCS) && $(MAKE) -k -s maintainer-clean
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
423 @echo maintainer-cleaning Lib files
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
424 @rm -f $(srcdir)/Lib/swigwarn.swg
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
425 @echo distcleaning
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
426 @$(MAKE) -k -s distclean-helper
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
427
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
428 #####################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
429 # Update the Lib/swigwarn.swg file
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
430 # Note: Generated into the source tree rather than build tree
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
431 #####################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
432
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
433 $(srcdir)/Lib/swigwarn.swg: $(srcdir)/Source/Include/swigwarn.h
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
434 mkdir -p Lib
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
435 echo "/* SWIG warning codes */" > $@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
436 cat $? | grep "^#define WARN\|/\*.*\*/\|^[ \t]*$$" | sed 's/^#define \(WARN.*[0-9][0-9]*\)\(.*\)$$/%define SWIG\1 %enddef\2/' >> $@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
437
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
438 #####################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
439 # TARGETS: install & friends
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
440 #####################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
441
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
442 INSTALL = @abs_srcdir@/Tools/config/install-sh -c
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
443 INSTALL_DATA = ${INSTALL} -m 644
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
444 INSTALL_PROGRAM = ${INSTALL} -m 755
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
445 MKINSTDIRS = @abs_srcdir@/Tools/config/install-sh -m 0755 -d
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
446 # Use standard autoconf approach to transform executable name using --program-prefix and --program-suffix
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
447 transform = @program_transform_name@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
448
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
449 install: install-main install-lib install-ccache
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
450 @echo "Installation complete"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
451
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
452 install-main:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
453 @echo "Installing SWIG executable"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
454 @$(MKINSTDIRS) $(DESTDIR)$(BIN_DIR)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
455 @echo "Installing $(DESTDIR)$(BIN_DIR)/`echo $(TARGET_NOEXE) | sed '$(transform)'`@EXEEXT@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
456 @$(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(BIN_DIR)/`echo $(TARGET_NOEXE) | sed '$(transform)'`@EXEEXT@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
457
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
458 lib-languages = gcj typemaps tcl perl5 python guile java mzscheme ruby php ocaml octave \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
459 pike chicken csharp modula3 allegrocl clisp lua cffi uffi r go d
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
460
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
461 lib-modules = std
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
462
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
463
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
464 install-lib:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
465 @echo "Installing the SWIG library"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
466 @$(MKINSTDIRS) $(DESTDIR)$(SWIG_LIB)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
467 @for file in $(srcdir)/Lib/*.i $(srcdir)/Lib/*.swg ; do \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
468 i=`basename $$file` ; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
469 echo "Installing $(DESTDIR)$(SWIG_LIB)/$$i"; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
470 $(INSTALL_DATA) $$file $(DESTDIR)$(SWIG_LIB)/$$i; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
471 done;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
472 @for lang in $(lib-languages) $(lib-modules); \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
473 do \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
474 echo "Installing language specific files for $$lang"; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
475 dst=$(DESTDIR)$(SWIG_LIB)/$$lang; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
476 $(MKINSTDIRS) $$dst; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
477 (doti="`cd $(srcdir)/Lib/$$lang && ls *.i 2>/dev/null || echo ''`"; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
478 dotswg="`cd $(srcdir)/Lib/$$lang && ls *.swg 2>/dev/null || echo ''`"; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
479 if [ -f $(srcdir)/Lib/$$lang/extra-install.list ]; then \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
480 extra="`sed '/^#/d' $(srcdir)/Lib/$$lang/extra-install.list`"; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
481 fi; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
482 files="`echo $$doti $$dotswg $$extra`"; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
483 if [ x"$$files" = x ]; then \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
484 echo "Installing nothing from Lib/$$lang"; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
485 else for file in $$doti $$dotswg $$extra; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
486 do \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
487 echo "Installing $$dst/$$file"; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
488 $(INSTALL_DATA) $(srcdir)/Lib/$$lang/$$file $$dst/$$file; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
489 done; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
490 fi) ; \
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
491 done
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
492
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
493 install-ccache:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
494 @test -z "$(ENABLE_CCACHE)" || (cd $(CCACHE) && $(MAKE) -s install)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
495
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
496
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
497 #####################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
498 # TARGETS: uninstall & friends
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
499 #####################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
500
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
501 uninstall: uninstall-main uninstall-lib uninstall-ccache
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
502 @echo "Uninstall complete"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
503
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
504 uninstall-main:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
505 @echo "Uninstalling SWIG executable $(DESTDIR)$(BIN_DIR)/`echo $(TARGET_NOEXE) | sed '$(transform)'`@EXEEXT@"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
506 rm -f $(DESTDIR)$(BIN_DIR)/`echo $(TARGET_NOEXE) | sed '$(transform)'`@EXEEXT@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
507
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
508 uninstall-lib:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
509 @echo "Uninstalling the SWIG library"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
510 rm -rf $(DESTDIR)$(SWIG_LIB)/
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
511
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
512 uninstall-ccache:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
513 test -z "$(ENABLE_CCACHE)" || (cd $(CCACHE) && $(MAKE) uninstall)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
514
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
515 ############################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
516 # DIST and other maintenance
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
517 ############################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
518
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
519 # distribution directory
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
520 dd = @PACKAGE_NAME@-@PACKAGE_VERSION@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
521 srpm = @PACKAGE_NAME@-@PACKAGE_VERSION@
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
522
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
523 dist:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
524 @echo "not implemented - use Tools/makedist.py instead."
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
525 false
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
526
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
527 srcrpm:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
528 rm -fr $(srpm) $(srpm).src.rpm
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
529 echo "TODO: update to use git instead of cvs"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
530 cvs export -d $(srpm) -r HEAD SWIG
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
531 cp swig.spec $(srpm)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
532 tar -cf - $(srpm) | gzip --best > $(srpm).tar.gz
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
533 rm -fr $(srpm)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
534 rpmbuild -ts $(srpm).tar.gz
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
535
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
536 # Update the autoconf files for detecting host/targets. Automake will do this in
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
537 # version 1.10 for our case of not having a top level Makefile.am. Until then we
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
538 # can fetch them manually and will have to commit them to Git.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
539 configfiles:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
540 wget ftp://ftp.gnu.org/pub/gnu/config/config.guess -O Tools/config/config.guess
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
541 chmod a+x Tools/config/config.guess
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
542 wget ftp://ftp.gnu.org/pub/gnu/config/config.sub -O Tools/config/config.sub
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
543 chmod a+x Tools/config/config.sub
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
544
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
545 # Regenerate Makefile if Makefile.in or config.status have changed.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
546 Makefile: $(srcdir)/Makefile.in config.status
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
547 $(SHELL) ./config.status
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
548
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
549 # This target is usually called from Source/Makefile when configure.ac has
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
550 # changed.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
551 am--refresh: $(srcdir)/configure
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
552
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
553 $(srcdir)/configure: $(srcdir)/configure.ac
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
554 @echo "Build system is out of date. If the following commands fail, please reconfigure by hand (rerun: ./autogen.sh && ./configure)"
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
555 cd $(srcdir) && ./autogen.sh
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
556 $(SHELL) ./config.status --recheck
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
557
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
558 ############################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
559 # Tools
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
560 ############################################################################
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
561
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
562 # Coverity static code analyser build and submit - EMAIL and PASSWORD need specifying
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
563 # See http://scan.coverity.com/start/
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
564 EMAIL=wsf@fultondesigns.co.uk
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
565 PASSWORD=
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
566 coverity:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
567 test -n "$(PASSWORD)" || (echo "PASSWORD not set" && false)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
568 $(MAKE) clean-source
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
569 rm -rf cov-int
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
570 cov-build --dir cov-int $(MAKE) source
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
571 tar czvf swig-coverity.tgz cov-int
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
572 curl --form file=@swig-coverity.tgz --form project=swig --form password=$(PASSWORD) --form email=$(EMAIL) http://scan5.coverity.com/cgi-bin/upload.py
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
573
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
574 # Makefile ends here