source: trunk/lang/Makefile.in @ 1048

Last change on this file since 1048 was 1048, checked in by gah, 16 years ago
File size: 1.7 KB
Line 
1
2bindir          = @bindir@
3datadir         = @datadir@
4datarootdir     = @datarootdir@
5exec_prefix     = @exec_prefix@
6includedir      = @includedir@
7libdir          = @libdir@
8mandir          = @mandir@
9prefix          = @prefix@
10
11INSTALL         = @INSTALL@
12
13F77 =           @F77@
14CC =            @CC@
15CXX =           @CXX@
16RUBY =          @RUBY@
17PERL =          @PERL@
18TCLSH =         @TCLSH@
19PYTHON_SITE_PACKAGES =  @PYTHON_SITE_PACKAGES@
20PYTHON =        @PYTHON@
21MEX =           @MEX@
22MKOCTFILE =     @MKOCTFILE@
23
24# Rappture requires we always build a Tcl language API.
25LANGS = target_tcl
26
27ifneq ($(MKOCTFILE),)
28  LANGS += target_octave
29endif
30ifneq ($(MEX),)
31  LANGS += target_matlab
32endif
33ifneq ($(PERL),)
34  LANGS += target_perl
35endif
36ifneq ($(PYTHON_SITE_PACKAGES),)
37  LANGS += target_python
38endif
39ifneq ($(RUBY),)
40#  LANGS += target_ruby
41endif
42
43BUILD_TARGETS = $(patsubst target_%,build_%,$(LANGS))
44INSTALL_TARGETS = $(patsubst target_%,install_%,$(LANGS))
45
46all:    $(BUILD_TARGETS)
47
48install: $(INSTALL_TARGETS)
49
50build_python:
51        $(MAKE) -C python all
52build_perl:
53        $(MAKE) -C perl all
54build_tcl:
55        $(MAKE) -C tcl all
56build_matlab:
57        $(MAKE) -C matlab all
58build_octave:
59        $(MAKE) -C octave all
60build_ruby:
61        $(MAKE) -C ruby all
62
63install_python:
64        $(MAKE) -C python install
65install_perl:
66        $(MAKE) -C perl install
67install_tcl:
68        $(MAKE) -C tcl install
69install_matlab:
70        $(MAKE) -C matlab install
71install_octave:
72        $(MAKE) -C octave install
73install_ruby:
74        $(MAKE) -C ruby install
75
76clean:
77        $(MAKE) -C matlab clean
78        $(MAKE) -C octave clean
79        $(MAKE) -C perl clean
80        $(MAKE) -C python clean
81        $(MAKE) -C ruby clean
82        $(MAKE) -C tcl clean
83
84distclean:
85        $(MAKE) -C matlab distclean
86        $(MAKE) -C octave distclean
87        $(MAKE) -C perl distclean
88        $(MAKE) -C python distclean
89        $(MAKE) -C ruby distclean
90        $(MAKE) -C tcl distclean
91        $(RM) Makefile *~
Note: See TracBrowser for help on using the repository browser.