File: Makefile.am

package info (click to toggle)
quantlib-swig 0.9.0-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 58,200 kB
  • ctags: 105,353
  • sloc: cpp: 1,047,001; ansic: 133,430; ml: 54,990; cs: 34,216; java: 23,659; perl: 17,882; python: 8,891; lisp: 2,337; ruby: 1,140; sh: 458; makefile: 355
file content (32 lines) | stat: -rw-r--r-- 661 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

CLEANFILES = quantlib_wrap.* QuantLibc.so extension.mak .build-stamp

BUILT_SOURCES = quantlib_wrap.cpp

if HAVE_RUBY

all-local: .build-stamp

.build-stamp: quantlib_wrap.cpp
	CXXFLAGS="$(CXXFLAGS)" $(RUBY) setup.rb build
	touch .build-stamp

check-local: .build-stamp
	$(RUBY) setup.rb test

install-exec-local: .build-stamp
	$(RUBY) setup.rb install

endif

quantlib_wrap.cpp: ../SWIG/*.i
	$(SWIG) -ruby -c++ -I../SWIG -o ./quantlib_wrap.cpp quantlib.i

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

EXTRA_DIST = README.txt setup.rb QuantLib.rb $(BUILT_SOURCES)