~ubuntu-branches/debian/squeeze/redland-bindings/squeeze

« back to all changes in this revision

Viewing changes to python/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Dave Beckett
  • Date: 2009-04-07 00:24:21 UTC
  • mfrom: (0.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090407002421-dce2r4otm5vqtheg
Tags: 1.0.8.1-2
* Use new sections ruby, php for librdf-ruby and php5-librdf respectively.
* Merge features from ubuntu packaging.  Thanks to Matthias Klose
  (not taking linker -Wl,--as-needed since that makes dyloading fail
  to pull in raptor symbols):
  debian/rules:
  - get python lib dir from distutils
  - make dh_pycentral use symlinks
  debian/python-librdf.examples:
  - add data/dc.rdf to examples dir and adjust example.py
    to point to it (Closes: #402612)
* Patch python/Makefile.in so it can allow the include dir to be
  overridden by the particular python version build in debian/rules
  using PYTHON_INCLUDES

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile.in generated by automake 1.10 from Makefile.am.
 
1
# Makefile.in generated by automake 1.10.1 from Makefile.am.
2
2
# @configure_input@
3
3
 
4
4
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
 
# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
5
# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
6
6
# This Makefile.in is free software; the Free Software Foundation
7
7
# gives unlimited permission to copy and/or distribute it,
8
8
# with or without modifications, as long as this notice is preserved.
18
18
#
19
19
# Makefile.am - automake file for Python interface to Redland
20
20
#
21
 
# $Id$
22
 
#
23
 
# Copyright (C) 2000-2005 David Beckett - http://purl.org/net/dajobe/
 
21
# Copyright (C) 2000-2005 David Beckett - http://www.dajobe.org/
24
22
# Copyright (C) 2000-2005 University of Bristol - http://www.bristol.ac.uk/
25
23
26
24
# This package is Free Software or Open Source available under the
102
100
CYGPATH_W = @CYGPATH_W@
103
101
DEFS = @DEFS@
104
102
DEPDIR = @DEPDIR@
 
103
DSYMUTIL = @DSYMUTIL@
105
104
ECHO = @ECHO@
106
105
ECHO_C = @ECHO_C@
107
106
ECHO_N = @ECHO_N@
118
117
LIBOBJS = @LIBOBJS@
119
118
LIBRDF_CPPFLAGS = @LIBRDF_CPPFLAGS@
120
119
LIBRDF_LDFLAGS = @LIBRDF_LDFLAGS@
121
 
LIBRDF_LIBTOOLLIBS = @LIBRDF_LIBTOOLLIBS@
122
120
LIBRUBYARG_SHARED = @LIBRUBYARG_SHARED@
123
121
LIBS = @LIBS@
124
122
LIBTOOL = @LIBTOOL@
129
127
MEM = @MEM@
130
128
MEM_LIBS = @MEM_LIBS@
131
129
MKDIR_P = @MKDIR_P@
 
130
NMEDIT = @NMEDIT@
132
131
OBJEXT = @OBJEXT@
133
132
PACKAGE = @PACKAGE@
134
133
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
155
154
PYTHON_INCLUDES = @PYTHON_INCLUDES@
156
155
PYTHON_LDFLAGS = @PYTHON_LDFLAGS@
157
156
PYTHON_LIB = @PYTHON_LIB@
 
157
PYTHON_LIBEXT = @PYTHON_LIBEXT@
158
158
PYTHON_VERSION = @PYTHON_VERSION@
159
159
RANLIB = @RANLIB@
160
160
REDLAND_CONFIG = @REDLAND_CONFIG@
161
 
REDLAND_MIN_VERSION = @REDLAND_MIN_VERSION@
162
161
REDLAND_RUN = @REDLAND_RUN@
163
162
REDLAND_SWIG = @REDLAND_SWIG@
164
163
REDLAND_VERSION = @REDLAND_VERSION@
231
230
 
232
231
# SWIG 1.3.27+ Needs SWIG_PYTHON_SILENT_MEMLEAK: I know better than SWIG
233
232
swig_flags = -DSWIG_PYTHON_SILENT_MEMLEAK
234
 
AM_CPPFLAGS = @CPPFLAGS@ @LIBRDF_CPPFLAGS@ @PYTHON_INCLUDES@ $(swig_flags)
 
233
AM_CPPFLAGS = @CPPFLAGS@ @LIBRDF_CPPFLAGS@ $(PYTHON_INCLUDES) $(swig_flags)
235
234
AM_CFLAGS = @CFLAGS@ @LIBRDF_CPPFLAGS@ $(MEM) $(swig_flags)
236
235
AM_LDFLAGS = @LIBRDF_LDFLAGS@ $(MEM_LIBS)
237
236
PYTHON_PACKAGE = Redland
238
237
SWIG_OUTPUTS = $(PYTHON_PACKAGE)_wrap.c
239
238
pythondir = @PYTHON_LIB@
240
 
python_DATA = RDF.py Redland.so
 
239
python_DATA = RDF.py Redland$(PYTHON_LIBEXT)
241
240
EXTRA_DIST = README RDF.py \
242
241
example.py redlandtest.py \
243
242
redland-post.i redland-decl.i redland-typemap.i $(SWIG_OUTPUTS)
245
244
SUBDIRS = test
246
245
CLEANFILES = dmalloc.log *.db *.pyc test-out.rdf \
247
246
$(PYTHON_PACKAGE)_wrap.so $(PYTHON_PACKAGE)_wrap.o $(PYTHON_PACKAGE)-stamp \
248
 
$(PYTHON_PACKAGE).so $(PYTHON_PACKAGE).bundle
 
247
$(PYTHON_PACKAGE)$(PYTHON_LIBEXT) $(PYTHON_PACKAGE).bundle
249
248
 
250
249
MAINTAINERCLEANFILES = $(SWIG_OUTPUTS) $(SWIG_CRUFT)
251
250
RUN = @REDLAND_RUN@
364
363
        unique=`for i in $$list; do \
365
364
            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
366
365
          done | \
367
 
          $(AWK) '    { files[$$0] = 1; } \
368
 
               END { for (i in files) print i; }'`; \
 
366
          $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
 
367
              END { if (nonempty) { for (i in files) print i; }; }'`; \
369
368
        mkid -fID $$unique
370
369
tags: TAGS
371
370
 
390
389
        unique=`for i in $$list; do \
391
390
            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
392
391
          done | \
393
 
          $(AWK) '    { files[$$0] = 1; } \
394
 
               END { for (i in files) print i; }'`; \
 
392
          $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
 
393
              END { if (nonempty) { for (i in files) print i; }; }'`; \
395
394
        if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
396
395
          test -n "$$unique" || unique=$$empty_fix; \
397
396
          $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
401
400
CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
402
401
                $(TAGS_FILES) $(LISP)
403
402
        tags=; \
404
 
        here=`pwd`; \
405
403
        list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
406
404
        unique=`for i in $$list; do \
407
405
            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
408
406
          done | \
409
 
          $(AWK) '    { files[$$0] = 1; } \
410
 
               END { for (i in files) print i; }'`; \
 
407
          $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
 
408
              END { if (nonempty) { for (i in files) print i; }; }'`; \
411
409
        test -z "$(CTAGS_ARGS)$$tags$$unique" \
412
410
          || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
413
411
             $$tags $$unique
577
575
$(PYTHON_PACKAGE)_wrap.so: $(srcdir)/$(PYTHON_PACKAGE)_wrap.c
578
576
        $(CC) $(DEFS) $(SWIG_OPTS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(STANDARD_CFLAGS) -fPIC -DPIC $(srcdir)/$(PYTHON_PACKAGE)_wrap.c -c -o $@
579
577
 
580
 
$(PYTHON_PACKAGE).so: $(PYTHON_PACKAGE)-stamp
 
578
$(PYTHON_PACKAGE)$(PYTHON_LIBEXT): $(PYTHON_PACKAGE)-stamp
581
579
$(PYTHON_PACKAGE)-stamp: $(PYTHON_PACKAGE)_wrap.so
582
 
        $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) $(PYTHON_LDFLAGS) $(PYTHON_PACKAGE)_wrap.so `@REDLAND_CONFIG@ --libs` -o $(PYTHON_PACKAGE).so
 
580
        $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) $(PYTHON_PACKAGE)_wrap.so $(PYTHON_LDFLAGS) -o $(PYTHON_PACKAGE)$(PYTHON_LIBEXT)
583
581
        touch $(PYTHON_PACKAGE)-stamp
584
582
 
585
583
install-pythonDATA: $(python_DATA)
586
584
        $(mkinstalldirs) $(DESTDIR)$(pythondir)
587
 
        $(INSTALL_PROGRAM) $(PYTHON_PACKAGE).so $(DESTDIR)$(pythondir)/$(PYTHON_PACKAGE).so
 
585
        $(INSTALL_PROGRAM) $(PYTHON_PACKAGE)$(PYTHON_LIBEXT) $(DESTDIR)$(pythondir)/$(PYTHON_PACKAGE)$(PYTHON_LIBEXT)
588
586
        $(INSTALL_DATA) RDF.py $(DESTDIR)$(pythondir)/RDF.py
589
587
 
590
588
uninstall-pythonDATA: $(python_DATA)
591
 
        rm -f $(DESTDIR)$(pythondir)/$(PYTHON_PACKAGE).so $(DESTDIR)$(pythondir)/RDF.py
 
589
        rm -f $(DESTDIR)$(pythondir)/$(PYTHON_PACKAGE)$(PYTHON_LIBEXT) $(DESTDIR)$(pythondir)/RDF.py
592
590
 
593
591
check-local: unittest-python test-python
594
592
 
595
 
test-python: $(PYTHON_PACKAGE).so
 
593
test-python: $(PYTHON_PACKAGE)$(PYTHON_LIBEXT)
596
594
        PYTHONPATH=. \
597
595
          $(RUN)$(PYTHON) $(srcdir)/test/test.py
598
596
 
599
 
unittest-python: $(PYTHON_PACKAGE).so
 
597
unittest-python: $(PYTHON_PACKAGE)$(PYTHON_LIBEXT)
600
598
        PYTHONPATH=. \
601
599
          $(RUN)$(PYTHON) $(srcdir)/redlandtest.py
602
600
 
603
 
RDF.html: RDF.py $(PYTHON_PACKAGE).so
 
601
RDF.html: RDF.py $(PYTHON_PACKAGE)$(PYTHON_LIBEXT)
604
602
        PYTHONPATH=. \
605
603
          $(RUN)$(PYTHON) -c 'import pydoc; pydoc.cli()' -w RDF
606
604
# Tell versions [3.59,3.63) of GNU make to not export all variables.