source: trunk/Makefile.in @ 529

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

adjustments to configure and makefiles to include the new tcl units bindings.
few more adjustments to rappture queues for condor

File size: 3.6 KB
Line 
1
2build_date := $(shell date +%Y%m%d)
3machine := $(shell uname -m)
4os := $(shell uname -s)
5bn := $(shell basename @prefix@)
6TarfileBasename=rappture-$(os)-$(machine)-$(build_date)
7
8all: rplib build_bindings
9install: rp_gui install_rplib install_bindings install_examples
10        chmod 755 gui/apps/rappture
11        cp gui/apps/rappture @prefix@/bin
12        cp gui/apps/driver @prefix@/bin
13        cp gui/apps/rerun @prefix@/bin
14        find @prefix@ -name .svn | xargs rm -rf
15
16###########################################################################
17# Makefile - build and install all Rappture libraries
18#############################################################################
19
20
21rp_gui:
22        set -x;
23        cd gui; \
24        make all; \
25        make install;
26
27#       ./configure --prefix=@prefix@ --with-blt=@prefix@/include; \
28#       make all >& $(basedir)/output.gui 2>&1; \
29#       make install >> $(basedir)/output.gui 2>&1
30
31rplib:
32        set -x;
33        cd src; make clean; make librappture;
34
35install_rplib:
36        set -x;
37        cd src; make install_rappture;
38
39build_bindings: build_matlab build_octave build_python build_perl
40
41install_bindings: install_matlab install_octave install_python install_perl install_tcl
42
43#############################################################################
44# build rappture examples
45# examples:
46#       - compile rappture examples in rappture/examples
47#############################################################################
48build_examples:
49        set -x;
50        cd examples/app-fermi/fortran; make clean; make; cd -
51        cd examples/app-fermi/cee; make clean; make; cd -
52        cd examples/c-example; make clean; make; cd -
53
54install_examples: build_examples
55        set -x;
56        cp -r examples @prefix@
57        rm -f @prefix@/examples/demo.bash.in
58
59
60
61#############################################################################
62
63#tcl bindings
64install_tcl:
65        cd tcl; @prefix@/bin/tclsh install.tcl
66#       cd tcl; @TCLSH@ install.tcl
67        cd src/tcl; make install; cd -
68
69# matlab bindings
70build_matlab:
71        cd src/matlab; make clean; make RpMatlab; cd -
72
73install_matlab: build_matlab
74        cd src/matlab; make install; cd -
75
76# octave bindings
77build_octave:
78        cd src/octave; make clean; make RpOctave; cd -
79
80install_octave: build_octave
81        cd src/octave; make install; cd -
82
83build_python:
84        set -x;
85        cd python; \
86        @PYTHON@ setup.py \
87                build_ext \
88                --library-dirs=@prefix@/lib \
89                --include-dirs=@prefix@/include \
90                build
91
92install_python: build_python
93        set -x;
94        cd python; \
95        @PYTHON@ setup.py install --prefix=@prefix@
96
97build_perl:
98        set -x;
99        cd perl; \
100        @PERL@ Makefile.PL INSTALLSITELIB=@prefix@/lib/perl5 INSTALLSITEMAN3DIR=@prefix@/man/man3; \
101        make; make test;
102
103install_perl: build_perl
104        set -x;
105        cd perl; make install;
106
107build_pkgs:
108        set -x;
109        if ! test -d "bin"; then \
110                mkdir bin;\
111        fi
112        # building rappture binary package
113        cd @prefix@/..; tar czf @RP_BASE@/bin/$(TarfileBasename).tar.gz $(bn)
114
115clean:
116        cd examples/app-fermi/cee; make clean; cd -;
117        cd examples/app-fermi/fortran; make clean; cd -;
118        cd examples/c-example; make clean; cd -;
119        cd gui; make clean; cd -;
120        cd perl; make clean; cd -;
121        cd python; rm -rf build; rm setup.py; cd -;
122        cd src; make clean; cd -;
123        cd src/matlab; make clean; cd -;
124        cd src/octave; make clean; cd -;
125        cd src/tcl; make distclean; cd -;
126
127distclean:
128        cd examples; rm demo.bash
129        cd examples/app-fermi/cee; make distclean; cd -;
130        cd examples/app-fermi/fortran; make distclean; cd -;
131        cd examples/c-example; make distclean; cd -;
132        cd gui; make distclean; cd -;
133        cd perl; make clean; rm Makefile.PL; cd -;
134        cd python; rm -rf build; rm setup.py; cd -;
135        cd src; make distclean; cd -;
136        cd src/matlab; make distclean; cd -;
137        cd src/octave; make distclean; cd -;
138        cd src/tcl; make distclean; cd -;
139        cd test; make distclean; cd -;
140        rm gui/apps/rappture;
141        rm -rf Makefile config.status config.log bin;
Note: See TracBrowser for help on using the repository browser.