File: Makefile.am

package info (click to toggle)
libdumbnet 1.8-1.5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,704 kB
  • ctags: 2,108
  • sloc: sh: 15,441; ansic: 10,147; python: 205; makefile: 162
file content (32 lines) | stat: -rw-r--r-- 567 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
## $Id: Makefile.am,v 1.6 2004/05/05 21:06:09 dugsong Exp $

include $(top_srcdir)/Makefile.am.common

if PYTHON
# XXX - nasty automake fudging here...

noinst_SCRIPTS = python-build

$(srcdir)/dnet.c: $(srcdir)/dnet.pyx
	pyrexc $(srcdir)/dnet.pyx

python-build: $(srcdir)/dnet.c
	$(PYTHON) setup.py build
	touch python-build

python-clean:
	rm -rf *build

clean: python-clean

distclean: clean

install-exec-local:
	$(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)

TESTS = test.py
endif

EXTRA_DIST = dnet.pyx dnet.c setup.py.in test.py

DISTCLEANFILES = *~