~ubuntu-branches/ubuntu/wily/apparmor/wily

« back to all changes in this revision

Viewing changes to libraries/libapparmor/swig/python/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2011-04-27 10:38:07 UTC
  • mfrom: (5.1.118 natty)
  • Revision ID: james.westby@ubuntu.com-20110427103807-ym3rhwys6o84ith0
Tags: 2.6.1-2
debian/copyright: clarify for some full organization names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
if HAVE_PYTHON
 
2
 
 
3
EXTRA_DIST      = libapparmor_wrap.c
 
4
 
 
5
libapparmor_wrap.c: $(srcdir)/../SWIG/libapparmor.i
 
6
        $(SWIG) -python -I$(srcdir)/../../src -module LibAppArmor -o $@ $(srcdir)/../SWIG/libapparmor.i
 
7
        mv LibAppArmor.py __init__.py
 
8
 
 
9
MOSTLYCLEANFILES=libapparmor_wrap.c __init__.py
 
10
 
 
11
all-local: libapparmor_wrap.c setup.py
 
12
        if test ! -f libapparmor_wrap.c; then cp $(srcdir)/libapparmor_wrap.c . ; fi
 
13
        $(PYTHON) setup.py build
 
14
 
 
15
install-exec-local:
 
16
        $(PYTHON) setup.py install --root="/$(DESTDIR)" --prefix="$(prefix)"
 
17
 
 
18
clean-local:
 
19
        if test -x "$(PYTHON)"; then $(PYTHON) setup.py clean; fi
 
20
        rm -rf build
 
21
        if test $(top_srcdir) != $(top_builddir) ; then rm -f libapparmor_wrap.c ; fi
 
22
 
 
23
endif