1 | all: rplib bindings |
---|
2 | install: install_rplib install_bindings install_examples |
---|
3 | |
---|
4 | ########################################################################### |
---|
5 | # Makefile - build and install all Rappture libraries |
---|
6 | ############################################################################# |
---|
7 | |
---|
8 | |
---|
9 | rplib: |
---|
10 | set -x; |
---|
11 | cd src; make clean; make librappture; |
---|
12 | |
---|
13 | install_rplib: |
---|
14 | set -x; |
---|
15 | cd src; make install |
---|
16 | |
---|
17 | bindings: |
---|
18 | set -x; |
---|
19 | cd src; \ |
---|
20 | make RpMatlab; \ |
---|
21 | make RpOctave; \ |
---|
22 | cd - |
---|
23 | # make RpTcl; |
---|
24 | make build_python_bindings; |
---|
25 | make build_perl_bindings; |
---|
26 | |
---|
27 | install_bindings: |
---|
28 | |
---|
29 | ############################################################################# |
---|
30 | # build rappture examples |
---|
31 | # examples: |
---|
32 | # - compile rappture examples in rappture/examples |
---|
33 | ############################################################################# |
---|
34 | examples: |
---|
35 | set -x; |
---|
36 | cd examples/app-fermi/fortran; make clean; make; cd - |
---|
37 | cd examples/app-fermi/cee; make clean; make; cd - |
---|
38 | cd examples/c-example; make clean; make; cd - |
---|
39 | |
---|
40 | install_examples: examples |
---|
41 | |
---|
42 | ############################################################################# |
---|
43 | |
---|
44 | build_python_bindings: |
---|
45 | set -x; |
---|
46 | cd python; \ |
---|
47 | @PYTHON@ setup.py \ |
---|
48 | build_ext \ |
---|
49 | --library-dirs=@prefix@/lib \ |
---|
50 | --include-dirs=@prefix@/include/core \ |
---|
51 | build |
---|
52 | |
---|
53 | install_python_bindings: build_python_bindings |
---|
54 | set -x; |
---|
55 | cd python; \ |
---|
56 | @PYTHON@ setup.py install --prefix=@prefix@ |
---|
57 | |
---|
58 | build_perl_bindings: |
---|
59 | set -x; |
---|
60 | cd perl; \ |
---|
61 | @PERL@ Makefile.PL INSTALLSITELIB=@prefix@/lib/perl5 INSTALLSITEMAN3DIR=@prefix@/man/man3; \ |
---|
62 | make; make test; |
---|
63 | |
---|
64 | install_perl_bindings: build_perl_bindings |
---|
65 | set -x; |
---|
66 | cd perl; make install; |
---|
67 | |
---|
68 | clean: |
---|
69 | cd examples/app-fermi/cee; make clean; cd -; |
---|
70 | cd examples/app-fermi/fortran; make clean; cd -; |
---|
71 | cd examples/c-example; make clean; cd -; |
---|
72 | cd perl; make clean; cd -; |
---|
73 | cd python; rm -rf build; cd -; |
---|
74 | cd src; make clean; cd -; |
---|
75 | cd src/matlab; make clean; cd -; |
---|
76 | cd src/octave; make clean; cd -; |
---|
77 | |
---|
78 | distclean: |
---|
79 | cd examples/app-fermi/cee; make distclean; cd -; |
---|
80 | cd examples/app-fermi/fortran; make distclean; cd -; |
---|
81 | cd examples/c-example; make distclean; cd -; |
---|
82 | cd perl; make clean; cd -; |
---|
83 | cd python; rm -rf build; cd -; |
---|
84 | cd src; make distclean; cd -; |
---|
85 | cd src/matlab; make distclean; cd -; |
---|
86 | cd src/octave; make distclean; cd -; |
---|
87 | cd test; make distclean; cd -; |
---|
88 | rm gui/apps/rappture; |
---|
89 | rm -r Makefile config.status config.log; |
---|