File: Makefile.am

package info (click to toggle)
quantlib-swig 0.3.13-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 43,120 kB
  • ctags: 74,378
  • sloc: cpp: 795,926; ansic: 103,715; ml: 39,516; cs: 24,631; java: 17,063; perl: 12,601; python: 6,752; lisp: 2,223; ruby: 1,103; sh: 458; makefile: 319
file content (36 lines) | stat: -rw-r--r-- 849 bytes parent folder | download | duplicates (2)
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
33
34
35
36

CLEANFILES = QuantLib/quantlib_wrap.cpp QuantLib/QuantLib.py .build-stamp

BUILT_SOURCES = QuantLib/quantlib_wrap.cpp QuantLib/QuantLib.py

if HAVE_PYTHON

all-local: .build-stamp

.build-stamp: QuantLib/quantlib_wrap.cpp QuantLib/QuantLib.py
	CXXFLAGS="$(CXXFLAGS)" $(PYTHON) setup.py build
	touch .build-stamp

check-local: .build-stamp
	$(PYTHON) setup.py test

install-exec-local: .build-stamp
	$(PYTHON) setup.py install

clean-local:
	rm -rf build

endif

QuantLib/quantlib_wrap.cpp QuantLib/QuantLib.py: ../SWIG/*.i
	$(SWIG) -python -c++ -modern -I../SWIG -outdir QuantLib \
            -o QuantLib/quantlib_wrap.cpp quantlib.i

dist-hook:
	mkdir -p $(distdir)/examples
	cp ./examples/*.py $(distdir)/examples
	mkdir -p $(distdir)/test
	cp ./test/*.py $(distdir)/test

EXTRA_DIST = README.txt setup.py QuantLib/__init__.py $(BUILT_SOURCES)