root/swish-python/Makefile

Revision 1677, 1.2 kB (checked in by augur, 3 years ago)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1
2 PACKAGE = swish-python
3 VERSION = 0.1
4 PYTHON_BIN = /usr/bin/python
5 SWIG_BIN = /usr/bin/swig
6 INSTALL_BIN = /usr/bin/install -m0644
7
8 DEBFILES = \
9     debian/changelog \
10     debian/compat \
11     debian/copyright \
12     debian/control \
13     debian/rules \
14     debian/files \
15
16 EXTRA_DIST = \
17     BUGS AUTHORS README INSTALL COPYING \
18     examples/search.py
19
20 DISTFILES = \
21     Makefile setup.txt swish.py \
22     setup.py swish.i \
23     swish_wrap.c $(DEBFILES) $(EXTRA_DIST)
24
25
26 all: swig module
27
28 swig: swish_wrap.c
29 swish_wrap.c:
30         $(SWIG_BIN) -python -module swish swish.i
31
32 module:
33         $(PYTHON_BIN) setup.py build
34
35 install: module
36         $(PYTHON_BIN) setup.py install `test -n "$(DESTDIR)" && echo --root $(DESTDIR)`
37
38 clean:
39         rm -fr build debian/swish-python debian/DEBIAN configure-stamp build-stamp *.pyc
40
41 realclean: clean
42         rm -f swish.py swish_wrap.c
43
44 distclean: realclean
45         rm -f $(PACKAGE)-$(VERSION).tar.gz
46
47 dist: swig
48         mkdir -p $(PACKAGE)-$(VERSION)
49         for file in $(DISTFILES); do \
50           $(INSTALL_BIN) -D $$file $(PACKAGE)-$(VERSION)/$$file; \
51         done
52         tar czf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
53         test -d $(PACKAGE)-$(VERSION) && rm -fr $(PACKAGE)-$(VERSION)
54
55 deb:
56         fakeroot dpkg-buildpackage
57
Note: See TracBrowser for help on using the browser.