source: trunk/Makefile.in @ 508

Last change on this file since 508 was 508, checked in by dkearney, 18 years ago

updates to Makefile.in's, this should not change the current build process as these files are not in use yet. also added python's units stuff the the top level python package.

File size: 2.3 KB
Line 
1all: rplib bindings
2install: install_rplib install_bindings install_examples
3
4###########################################################################
5# Makefile - build and install all Rappture libraries
6#############################################################################
7
8
9rplib:
10        set -x;
11        cd src; make clean; make librappture;
12
13install_rplib:
14        set -x;
15        cd src; make install
16
17bindings:
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
27install_bindings:
28
29#############################################################################
30# build rappture examples
31# examples:
32#       - compile rappture examples in rappture/examples
33#############################################################################
34examples:
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
40install_examples: examples
41
42#############################################################################
43
44build_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
53install_python_bindings: build_python_bindings
54        set -x;
55        cd python; \
56        @PYTHON@ setup.py install --prefix=@prefix@
57
58build_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
64install_perl_bindings: build_perl_bindings
65        set -x;
66        cd perl; make install;
67
68clean:
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; rm setup.py; cd -;
74        cd src; make clean; cd -;
75        cd src/matlab; make clean; cd -;
76        cd src/octave; make clean; cd -;
77
78distclean:
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; rm setup.py; 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;
Note: See TracBrowser for help on using the repository browser.