gohanlonllc-libsvm-ruby 2.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/ext/configure.ac ADDED
@@ -0,0 +1,133 @@
1
+ # Copyright (c) 2006 Rudi Cilibrasi, Rulers of the RHouse
2
+ # All rights reserved. cilibrar@cilibrar.com
3
+ # Redistribution and use in source and binary forms, with or without
4
+ # modification, are permitted provided that the following conditions are met:
5
+ #
6
+ # # Redistributions of source code must retain the above copyright
7
+ # notice, this list of conditions and the following disclaimer.
8
+ # # Redistributions in binary form must reproduce the above copyright
9
+ # notice, this list of conditions and the following disclaimer in the
10
+ # documentation and/or other materials provided with the distribution.
11
+ # # Neither the name of the RHouse nor the
12
+ # names of its contributors may be used to endorse or promote products
13
+ # derived from this software without specific prior written permission.
14
+ #
15
+ # THIS SOFTWARE IS PROVIDED BY THE RULERS AND CONTRIBUTORS "AS IS" AND ANY
16
+ # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ # DISCLAIMED. IN NO EVENT SHALL THE RULERS AND CONTRIBUTORS BE LIABLE FOR ANY
19
+ # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
+ # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
+ # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
+ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
+ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
+
26
+ AC_INIT(main.cpp)
27
+ AC_CANONICAL_SYSTEM
28
+ AC_ARG_PROGRAM
29
+ AM_INIT_AUTOMAKE(libsvm-ruby, 2.8.4, cilibrar@cilibrar.com)
30
+ AC_LANG_CPLUSPLUS
31
+ AC_PROG_CXX
32
+ AC_CHECK_PROG(MKTEMP, mktemp, mktemp)
33
+ AC_CHECK_PROG(RUBY, ruby, ruby)
34
+
35
+ fsvm_h=0
36
+ fsvm_lib=0
37
+
38
+ CPPFLAGS="$CPPFLAGS -I/usr/include/libsvm-1.0"
39
+
40
+ if test -z "$RUBY"; then
41
+ AC_CHECK_PROG(RUBY, ruby1.8, ruby1.8)
42
+ fi
43
+
44
+ if test -z "$RUBY"; then
45
+ echo "Cannot find ruby nor ruby1.8, exitting..."
46
+ exit 1
47
+ fi
48
+
49
+ AC_CHECK_PROGS(PKGCONFIG, pkg-config)
50
+ if ! test "x$PKGCONFIG" = "x" ; then
51
+ for i in libsvm ; do
52
+ if $PKGCONFIG --exists $i ; then
53
+ CPPFLAGS="$CPPFLAGS `pkg-config $i --cflags`"
54
+ LDFLAGS="$LDFLAGS `pkg-config $i --libs`"
55
+ else
56
+ echo -n
57
+ fi
58
+ done
59
+ fi
60
+
61
+ CURTMPDIR=`mktemp -d`
62
+
63
+ case "${target}" in
64
+ *-*-cygwin*)
65
+ echo "Building for Cygwin : ${target}"
66
+ CFLAGS="$CFLAGS -DWINCHOICE -I /usr/local/include -I /usr/local/include/SDL"
67
+ CPPFLAGS="$CFLAGS"
68
+ LDFLAGS="-L/lib -L/usr/local/lib"
69
+ # LIBS="$LIBS -lgdi32 -lkernel32 -luser32"
70
+ ;;
71
+ *-*-mingw32*)
72
+ echo "Building for cross-compilation to MinGW : ${target}"
73
+ btarget="i586-mingw32msvc"
74
+ CC="${btarget}-gcc"
75
+ CPP="${btarget}-cpp"
76
+ LD="${btarget}-ld"
77
+ AR="${btarget}-ar"
78
+ # TODO: add the LIBS: -lwsock32 -luser32 (and maybe -lgcc) stuff
79
+ RANLIB="${btarget}-ranlib"
80
+ unset btarget
81
+ ;;
82
+ *-*-linux*)
83
+ echo "Building for Linux"
84
+ CPPFLAGS="$CPPFLAGS -DLINUX"
85
+ LDFLAGS="-L/lib -L/usr/local/lib -L/usr/lib"
86
+ AC_DEFINE(LINUX, 1, "Linux")
87
+ ;;
88
+ *)
89
+ echo "Building for target: ${target}"
90
+ esac
91
+
92
+ if test "x$CC" == "xgcc";
93
+ then
94
+ CFLAGS="$CFLAGS -fno-strict-aliasing"
95
+ fi
96
+
97
+ AC_CHECK_LIB(svm, main,
98
+ echo "Found libsvm."
99
+ [LIBS="$LIBS -lsvm" ; fsvm_lib=1])
100
+
101
+ AC_CHECK_LIB(svm, svm_set_verbosity,
102
+ echo "Found libsvm quiet function."
103
+ [CFLAGS="$CFLAGS -DQUIETFUNC=1"])
104
+
105
+ AC_CHECK_HEADER([libsvm/svm.h], [fsvm_h=1 ; echo "Found libsvm/svm.h"])
106
+
107
+ if test ${fsvm_h} -eq 0; then
108
+ echo "Error, cannot find LIBSVM svm.h header."
109
+ exit 1
110
+ fi
111
+
112
+ if test ${fsvm_lib} -eq 0; then
113
+ echo "Error, cannot find svm library."
114
+ exit 1
115
+ fi
116
+
117
+ export CFLAGS
118
+ export CPPFLAGS
119
+ export LDFLAGS
120
+
121
+ ( $RUBY extconf.rb
122
+ cat <<EOF >>Makefile
123
+
124
+ distdir:
125
+
126
+
127
+ EOF
128
+ )
129
+
130
+ AC_CONFIG_FILES([extraMakefile])
131
+
132
+ AC_OUTPUT
133
+
data/ext/extconf.rb ADDED
@@ -0,0 +1,9 @@
1
+ require 'mkmf'
2
+ #have_library('stdc++', "main")
3
+ #have_library('svm', "main")
4
+ $CFLAGS = "#{ENV['CFLAGS']} -Wall -O3 "
5
+ pkg_config 'libsvm'
6
+ if CONFIG["MAJOR"].to_i >= 1 && CONFIG["MINOR"].to_i >= 8
7
+ $CFLAGS << " -DHAVE_DEFINE_ALLOC_FUNCTION"
8
+ end
9
+ create_makefile('SVM')
@@ -0,0 +1,37 @@
1
+ # Copyright (c) 2006 Rudi Cilibrasi, Rulers of the RHouse
2
+ # All rights reserved. cilibrar@cilibrar.com
3
+ # Redistribution and use in source and binary forms, with or without
4
+ # modification, are permitted provided that the following conditions are met:
5
+ #
6
+ # # Redistributions of source code must retain the above copyright
7
+ # notice, this list of conditions and the following disclaimer.
8
+ # # Redistributions in binary form must reproduce the above copyright
9
+ # notice, this list of conditions and the following disclaimer in the
10
+ # documentation and/or other materials provided with the distribution.
11
+ # # Neither the name of the RHouse nor the
12
+ # names of its contributors may be used to endorse or promote products
13
+ # derived from this software without specific prior written permission.
14
+ #
15
+ # THIS SOFTWARE IS PROVIDED BY THE RULERS AND CONTRIBUTORS "AS IS" AND ANY
16
+ # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ # DISCLAIMED. IN NO EVENT SHALL THE RULERS AND CONTRIBUTORS BE LIABLE FOR ANY
19
+ # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
+ # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
+ # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
+ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
+ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
+
26
+ DISTCLEANFILES = configure libsvm-ruby-2.8.4.tar.gz extraMakefile.in aclocal.m4 Makefile
27
+
28
+ distclean-local:
29
+ rm -rf autom4te.cache
30
+
31
+ EXTRA_DIST = $(pkgfilelist)
32
+
33
+ pkgfilelist = \
34
+ main.cpp \
35
+ README \
36
+ test.rb \
37
+ extconf.rb
@@ -0,0 +1,453 @@
1
+ # extraMakefile.in generated by automake 1.8.5 from extraMakefile.am.
2
+ # @configure_input@
3
+
4
+ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
+ # 2003, 2004 Free Software Foundation, Inc.
6
+ # This Makefile.in is free software; the Free Software Foundation
7
+ # gives unlimited permission to copy and/or distribute it,
8
+ # with or without modifications, as long as this notice is preserved.
9
+
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12
+ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13
+ # PARTICULAR PURPOSE.
14
+
15
+ @SET_MAKE@
16
+
17
+ # Copyright (c) 2006 Rudi Cilibrasi, Rulers of the RHouse
18
+ # All rights reserved. cilibrar@cilibrar.com
19
+ # Redistribution and use in source and binary forms, with or without
20
+ # modification, are permitted provided that the following conditions are met:
21
+ #
22
+ # # Redistributions of source code must retain the above copyright
23
+ # notice, this list of conditions and the following disclaimer.
24
+ # # Redistributions in binary form must reproduce the above copyright
25
+ # notice, this list of conditions and the following disclaimer in the
26
+ # documentation and/or other materials provided with the distribution.
27
+ # # Neither the name of the RHouse nor the
28
+ # names of its contributors may be used to endorse or promote products
29
+ # derived from this software without specific prior written permission.
30
+ #
31
+ # THIS SOFTWARE IS PROVIDED BY THE RULERS AND CONTRIBUTORS "AS IS" AND ANY
32
+ # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
33
+ # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
34
+ # DISCLAIMED. IN NO EVENT SHALL THE RULERS AND CONTRIBUTORS BE LIABLE FOR ANY
35
+ # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
36
+ # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
37
+ # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
38
+ # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
39
+ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
40
+ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41
+ srcdir = @srcdir@
42
+ top_srcdir = @top_srcdir@
43
+ VPATH = @srcdir@
44
+ pkgdatadir = $(datadir)/@PACKAGE@
45
+ pkglibdir = $(libdir)/@PACKAGE@
46
+ pkgincludedir = $(includedir)/@PACKAGE@
47
+ top_builddir = .
48
+ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
49
+ INSTALL = @INSTALL@
50
+ install_sh_DATA = $(install_sh) -c -m 644
51
+ install_sh_PROGRAM = $(install_sh) -c
52
+ install_sh_SCRIPT = $(install_sh) -c
53
+ INSTALL_HEADER = $(INSTALL_DATA)
54
+ transform = $(program_transform_name)
55
+ NORMAL_INSTALL = :
56
+ PRE_INSTALL = :
57
+ POST_INSTALL = :
58
+ NORMAL_UNINSTALL = :
59
+ PRE_UNINSTALL = :
60
+ POST_UNINSTALL = :
61
+ build_triplet = @build@
62
+ host_triplet = @host@
63
+ target_triplet = @target@
64
+ DIST_COMMON = README $(am__configure_deps) $(srcdir)/extraMakefile.am \
65
+ $(srcdir)/extraMakefile.in $(top_srcdir)/configure AUTHORS \
66
+ COPYING ChangeLog INSTALL NEWS config.guess config.sub \
67
+ install-sh missing
68
+ subdir = .
69
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
70
+ am__aclocal_m4_deps = $(top_srcdir)/configure.ac
71
+ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
72
+ $(ACLOCAL_M4)
73
+ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
74
+ configure.lineno configure.status.lineno
75
+ mkinstalldirs = $(mkdir_p)
76
+ CONFIG_CLEAN_FILES =
77
+ SOURCES =
78
+ DIST_SOURCES =
79
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
80
+ distdir = $(PACKAGE)-$(VERSION)
81
+ top_distdir = $(distdir)
82
+ am__remove_distdir = \
83
+ { test ! -d $(distdir) \
84
+ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
85
+ && rm -fr $(distdir); }; }
86
+ DIST_ARCHIVES = $(distdir).tar.gz
87
+ GZIP_ENV = --best
88
+ distuninstallcheck_listfiles = find . -type f -print
89
+ distcleancheck_listfiles = find . -type f -print
90
+ ACLOCAL = @ACLOCAL@
91
+ AMDEP_FALSE = @AMDEP_FALSE@
92
+ AMDEP_TRUE = @AMDEP_TRUE@
93
+ AMTAR = @AMTAR@
94
+ AUTOCONF = @AUTOCONF@
95
+ AUTOHEADER = @AUTOHEADER@
96
+ AUTOMAKE = @AUTOMAKE@
97
+ AWK = @AWK@
98
+ CPPFLAGS = @CPPFLAGS@
99
+ CXX = @CXX@
100
+ CXXCPP = @CXXCPP@
101
+ CXXDEPMODE = @CXXDEPMODE@
102
+ CXXFLAGS = @CXXFLAGS@
103
+ CYGPATH_W = @CYGPATH_W@
104
+ DEFS = @DEFS@
105
+ DEPDIR = @DEPDIR@
106
+ ECHO_C = @ECHO_C@
107
+ ECHO_N = @ECHO_N@
108
+ ECHO_T = @ECHO_T@
109
+ EGREP = @EGREP@
110
+ EXEEXT = @EXEEXT@
111
+ GREP = @GREP@
112
+ INSTALL_DATA = @INSTALL_DATA@
113
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
114
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@
115
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
116
+ LDFLAGS = @LDFLAGS@
117
+ LIBOBJS = @LIBOBJS@
118
+ LIBS = @LIBS@
119
+ LTLIBOBJS = @LTLIBOBJS@
120
+ MAKEINFO = @MAKEINFO@
121
+ MKTEMP = @MKTEMP@
122
+ OBJEXT = @OBJEXT@
123
+ PACKAGE = @PACKAGE@
124
+ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
125
+ PACKAGE_NAME = @PACKAGE_NAME@
126
+ PACKAGE_STRING = @PACKAGE_STRING@
127
+ PACKAGE_TARNAME = @PACKAGE_TARNAME@
128
+ PACKAGE_VERSION = @PACKAGE_VERSION@
129
+ PATH_SEPARATOR = @PATH_SEPARATOR@
130
+ PKGCONFIG = @PKGCONFIG@
131
+ RUBY = @RUBY@
132
+ SET_MAKE = @SET_MAKE@
133
+ SHELL = @SHELL@
134
+ STRIP = @STRIP@
135
+ VERSION = @VERSION@
136
+ ac_ct_CXX = @ac_ct_CXX@
137
+ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
138
+ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
139
+ am__include = @am__include@
140
+ am__leading_dot = @am__leading_dot@
141
+ am__quote = @am__quote@
142
+ bindir = @bindir@
143
+ build = @build@
144
+ build_alias = @build_alias@
145
+ build_cpu = @build_cpu@
146
+ build_os = @build_os@
147
+ build_vendor = @build_vendor@
148
+ datadir = @datadir@
149
+ datarootdir = @datarootdir@
150
+ docdir = @docdir@
151
+ dvidir = @dvidir@
152
+ exec_prefix = @exec_prefix@
153
+ host = @host@
154
+ host_alias = @host_alias@
155
+ host_cpu = @host_cpu@
156
+ host_os = @host_os@
157
+ host_vendor = @host_vendor@
158
+ htmldir = @htmldir@
159
+ includedir = @includedir@
160
+ infodir = @infodir@
161
+ install_sh = @install_sh@
162
+ libdir = @libdir@
163
+ libexecdir = @libexecdir@
164
+ localedir = @localedir@
165
+ localstatedir = @localstatedir@
166
+ mandir = @mandir@
167
+ mkdir_p = @mkdir_p@
168
+ oldincludedir = @oldincludedir@
169
+ pdfdir = @pdfdir@
170
+ prefix = @prefix@
171
+ program_transform_name = @program_transform_name@
172
+ psdir = @psdir@
173
+ sbindir = @sbindir@
174
+ sharedstatedir = @sharedstatedir@
175
+ sysconfdir = @sysconfdir@
176
+ target = @target@
177
+ target_alias = @target_alias@
178
+ target_cpu = @target_cpu@
179
+ target_os = @target_os@
180
+ target_vendor = @target_vendor@
181
+ DISTCLEANFILES = configure libsvm-ruby-2.8.4.tar.gz extraMakefile.in aclocal.m4 Makefile
182
+ EXTRA_DIST = $(pkgfilelist)
183
+ pkgfilelist = \
184
+ main.cpp \
185
+ README \
186
+ test.rb \
187
+ extconf.rb
188
+
189
+ all: all-am
190
+
191
+ .SUFFIXES:
192
+ am--refresh:
193
+ @:
194
+ $(srcdir)/extraMakefile.in: $(srcdir)/extraMakefile.am $(am__configure_deps)
195
+ @for dep in $?; do \
196
+ case '$(am__configure_deps)' in \
197
+ *$$dep*) \
198
+ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
199
+ cd $(srcdir) && $(AUTOMAKE) --gnu \
200
+ && exit 0; \
201
+ exit 1;; \
202
+ esac; \
203
+ done; \
204
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu extraMakefile'; \
205
+ cd $(top_srcdir) && \
206
+ $(AUTOMAKE) --gnu extraMakefile
207
+ .PRECIOUS: extraMakefile
208
+ extraMakefile: $(srcdir)/extraMakefile.in $(top_builddir)/config.status
209
+ @case '$?' in \
210
+ *config.status*) \
211
+ echo ' $(SHELL) ./config.status'; \
212
+ $(SHELL) ./config.status;; \
213
+ *) \
214
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
215
+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
216
+ esac;
217
+
218
+ $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
219
+ $(SHELL) ./config.status --recheck
220
+
221
+ $(top_srcdir)/configure: $(am__configure_deps)
222
+ cd $(srcdir) && $(AUTOCONF)
223
+ $(ACLOCAL_M4): $(am__aclocal_m4_deps)
224
+ cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
225
+ uninstall-info-am:
226
+ tags: TAGS
227
+ TAGS:
228
+
229
+ ctags: CTAGS
230
+ CTAGS:
231
+
232
+
233
+ distdir: $(DISTFILES)
234
+ $(am__remove_distdir)
235
+ mkdir $(distdir)
236
+ @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
237
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
238
+ list='$(DISTFILES)'; for file in $$list; do \
239
+ case $$file in \
240
+ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
241
+ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
242
+ esac; \
243
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
244
+ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
245
+ if test "$$dir" != "$$file" && test "$$dir" != "."; then \
246
+ dir="/$$dir"; \
247
+ $(mkdir_p) "$(distdir)$$dir"; \
248
+ else \
249
+ dir=''; \
250
+ fi; \
251
+ if test -d $$d/$$file; then \
252
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
253
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
254
+ fi; \
255
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
256
+ else \
257
+ test -f $(distdir)/$$file \
258
+ || cp -p $$d/$$file $(distdir)/$$file \
259
+ || exit 1; \
260
+ fi; \
261
+ done
262
+ -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
263
+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
264
+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
265
+ ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
266
+ || chmod -R a+r $(distdir)
267
+ dist-gzip: distdir
268
+ $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
269
+ $(am__remove_distdir)
270
+
271
+ dist-bzip2: distdir
272
+ $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
273
+ $(am__remove_distdir)
274
+
275
+ dist-tarZ: distdir
276
+ $(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
277
+ $(am__remove_distdir)
278
+
279
+ dist-shar: distdir
280
+ shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
281
+ $(am__remove_distdir)
282
+
283
+ dist-zip: distdir
284
+ -rm -f $(distdir).zip
285
+ zip -rq $(distdir).zip $(distdir)
286
+ $(am__remove_distdir)
287
+
288
+ dist dist-all: distdir
289
+ $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
290
+ $(am__remove_distdir)
291
+
292
+ # This target untars the dist file and tries a VPATH configuration. Then
293
+ # it guarantees that the distribution is self-contained by making another
294
+ # tarfile.
295
+ distcheck: dist
296
+ case '$(DIST_ARCHIVES)' in \
297
+ *.tar.gz*) \
298
+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - ;;\
299
+ *.tar.bz2*) \
300
+ bunzip2 -c $(distdir).tar.bz2 | $(AMTAR) xf - ;;\
301
+ *.tar.Z*) \
302
+ uncompress -c $(distdir).tar.Z | $(AMTAR) xf - ;;\
303
+ *.shar.gz*) \
304
+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
305
+ *.zip*) \
306
+ unzip $(distdir).zip ;;\
307
+ esac
308
+ chmod -R a-w $(distdir); chmod a+w $(distdir)
309
+ mkdir $(distdir)/_build
310
+ mkdir $(distdir)/_inst
311
+ chmod a-w $(distdir)
312
+ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
313
+ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
314
+ && cd $(distdir)/_build \
315
+ && ../configure --srcdir=.. --prefix="$$dc_install_base" \
316
+ $(DISTCHECK_CONFIGURE_FLAGS) \
317
+ && $(MAKE) $(AM_MAKEFLAGS) \
318
+ && $(MAKE) $(AM_MAKEFLAGS) dvi \
319
+ && $(MAKE) $(AM_MAKEFLAGS) check \
320
+ && $(MAKE) $(AM_MAKEFLAGS) install \
321
+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
322
+ && $(MAKE) $(AM_MAKEFLAGS) uninstall \
323
+ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
324
+ distuninstallcheck \
325
+ && chmod -R a-w "$$dc_install_base" \
326
+ && ({ \
327
+ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
328
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
329
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
330
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
331
+ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
332
+ } || { rm -rf "$$dc_destdir"; exit 1; }) \
333
+ && rm -rf "$$dc_destdir" \
334
+ && $(MAKE) $(AM_MAKEFLAGS) dist \
335
+ && rm -rf $(DIST_ARCHIVES) \
336
+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
337
+ $(am__remove_distdir)
338
+ @(echo "$(distdir) archives ready for distribution: "; \
339
+ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
340
+ sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
341
+ distuninstallcheck:
342
+ @cd $(distuninstallcheck_dir) \
343
+ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
344
+ || { echo "ERROR: files left after uninstall:" ; \
345
+ if test -n "$(DESTDIR)"; then \
346
+ echo " (check DESTDIR support)"; \
347
+ fi ; \
348
+ $(distuninstallcheck_listfiles) ; \
349
+ exit 1; } >&2
350
+ distcleancheck: distclean
351
+ @if test '$(srcdir)' = . ; then \
352
+ echo "ERROR: distcleancheck can only run from a VPATH build" ; \
353
+ exit 1 ; \
354
+ fi
355
+ @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
356
+ || { echo "ERROR: files left in build directory after distclean:" ; \
357
+ $(distcleancheck_listfiles) ; \
358
+ exit 1; } >&2
359
+ check-am: all-am
360
+ check: check-am
361
+ all-am: extraMakefile
362
+ installdirs:
363
+ install: install-am
364
+ install-exec: install-exec-am
365
+ install-data: install-data-am
366
+ uninstall: uninstall-am
367
+
368
+ install-am: all-am
369
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
370
+
371
+ installcheck: installcheck-am
372
+ install-strip:
373
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
374
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
375
+ `test -z '$(STRIP)' || \
376
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
377
+ mostlyclean-generic:
378
+
379
+ clean-generic:
380
+
381
+ distclean-generic:
382
+ -rm -f $(CONFIG_CLEAN_FILES)
383
+ -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
384
+
385
+ maintainer-clean-generic:
386
+ @echo "This command is intended for maintainers to use"
387
+ @echo "it deletes files that may require special tools to rebuild."
388
+ clean: clean-am
389
+
390
+ clean-am: clean-generic mostlyclean-am
391
+
392
+ distclean: distclean-am
393
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
394
+ -rm -f extraMakefile
395
+ distclean-am: clean-am distclean-generic distclean-local
396
+
397
+ dvi: dvi-am
398
+
399
+ dvi-am:
400
+
401
+ html: html-am
402
+
403
+ info: info-am
404
+
405
+ info-am:
406
+
407
+ install-data-am:
408
+
409
+ install-exec-am:
410
+
411
+ install-info: install-info-am
412
+
413
+ install-man:
414
+
415
+ installcheck-am:
416
+
417
+ maintainer-clean: maintainer-clean-am
418
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
419
+ -rm -rf $(top_srcdir)/autom4te.cache
420
+ -rm -f extraMakefile
421
+ maintainer-clean-am: distclean-am maintainer-clean-generic
422
+
423
+ mostlyclean: mostlyclean-am
424
+
425
+ mostlyclean-am: mostlyclean-generic
426
+
427
+ pdf: pdf-am
428
+
429
+ pdf-am:
430
+
431
+ ps: ps-am
432
+
433
+ ps-am:
434
+
435
+ uninstall-am: uninstall-info-am
436
+
437
+ .PHONY: all all-am am--refresh check check-am clean clean-generic dist \
438
+ dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \
439
+ distcheck distclean distclean-generic distclean-local \
440
+ distcleancheck distdir distuninstallcheck dvi dvi-am html \
441
+ html-am info info-am install install-am install-data \
442
+ install-data-am install-exec install-exec-am install-info \
443
+ install-info-am install-man install-strip installcheck \
444
+ installcheck-am installdirs maintainer-clean \
445
+ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
446
+ pdf-am ps ps-am uninstall uninstall-am uninstall-info-am
447
+
448
+
449
+ distclean-local:
450
+ rm -rf autom4te.cache
451
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
452
+ # Otherwise a system limit (for SysV at least) may be exceeded.
453
+ .NOEXPORT: