source: trunk/Makefile.in @ 515

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

added units of days (d), hours (h), minutes (min), /m2.
minutes units was not added to tcl because tcl thinks it milli-in's
added a few simple tests to test day/hour/minute/second conversions
adjusted python's queue module to get condor working mostly.
adjustments to a few make files

File size: 3.5 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
68# matlab bindings
69build_matlab:
70        cd src/matlab; make clean; make RpMatlab; cd -
71
72install_matlab: build_matlab
73        cd src/matlab; make install; cd -
74
75# octave bindings
76build_octave:
77        cd src/octave; make clean; make RpOctave; cd -
78
79install_octave: build_octave
80        cd src/octave; make install; cd -
81
82build_python:
83        set -x;
84        cd python; \
85        @PYTHON@ setup.py \
86                build_ext \
87                --library-dirs=@prefix@/lib \
88                --include-dirs=@prefix@/include \
89                build
90
91install_python: build_python
92        set -x;
93        cd python; \
94        @PYTHON@ setup.py install --prefix=@prefix@
95
96build_perl:
97        set -x;
98        cd perl; \
99        @PERL@ Makefile.PL INSTALLSITELIB=@prefix@/lib/perl5 INSTALLSITEMAN3DIR=@prefix@/man/man3; \
100        make; make test;
101
102install_perl: build_perl
103        set -x;
104        cd perl; make install;
105
106build_pkgs:
107        set -x;
108        if ! test -d "bin"; then \
109                mkdir bin;\
110        fi
111        # building rappture binary package
112        cd @prefix@/..; tar czf @RP_BASE@/bin/$(TarfileBasename).tar.gz $(bn)
113
114clean:
115        cd examples/app-fermi/cee; make clean; cd -;
116        cd examples/app-fermi/fortran; make clean; cd -;
117        cd examples/c-example; make clean; cd -;
118        cd gui; make clean; cd -;
119        cd perl; make clean; cd -;
120        cd python; rm -rf build; rm setup.py; cd -;
121        cd src; make clean; cd -;
122        cd src/matlab; make clean; cd -;
123        cd src/octave; make clean; cd -;
124
125distclean:
126        cd examples; rm demo.bash
127        cd examples/app-fermi/cee; make distclean; cd -;
128        cd examples/app-fermi/fortran; make distclean; cd -;
129        cd examples/c-example; make distclean; cd -;
130        cd gui; make distclean; cd -;
131        cd perl; make clean; rm Makefile.PL; cd -;
132        cd python; rm -rf build; rm setup.py; cd -;
133        cd src; make distclean; cd -;
134        cd src/matlab; make distclean; cd -;
135        cd src/octave; make distclean; cd -;
136        cd test; make distclean; cd -;
137        rm gui/apps/rappture;
138        rm -rf Makefile config.status config.log bin;
Note: See TracBrowser for help on using the repository browser.