source: trunk/lang/Makefile.in @ 3471

Last change on this file since 3471 was 3471, checked in by ldelgass, 8 years ago

Makefile fixes: make 'install' target always depend on 'all' target. This
ensures that an up to date build exists before installing, and also permits
the use of "make install" in place of "make all install" or "make all; make install". It doesn't affect the existing build scripts. Likewise, make 'distclean'
always depend on 'clean'. Remove empty contour objects example, as there is no
corresponding object class. Also declare all the standard targets 'all, install,
etc' in the .PHONY section for performance.

File size: 1.4 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
13SHELL           = @SHELL@
14F77             = @F77@
15CC              = @CC@
16CXX             = @CXX@
17HAVE_RUBY_H     = @HAVE_RUBY_H@
18RUBY            = @RUBY@
19PERL            = @PERL@
20TCLSH           = @TCLSH@
21PYTHON          = @PYTHON_DISTUTILS@
22MEX             = @MEX@
23OCTAVE          = @OCTAVE_VERSION@
24JAVA_INC_DIR    = @JAVA_INC_DIR@
25R               = @R@
26
27# Rappture requires it. We always build a Tcl language API.
28LANGS = tcl
29
30ifneq ($(PERL),)
31  LANGS += perl
32endif
33ifeq ($(PYTHON),yes)
34  LANGS += python
35endif
36ifeq ($(RUBY),yes)
37  ifeq ($(HAVE_RUBY_H),yes)
38    LANGS += ruby
39  endif
40endif
41ifneq ($(MEX),)
42  LANGS += matlab
43endif
44ifneq ($(OCTAVE),)
45  LANGS += octave
46endif
47ifneq ($(JAVA_INC_DIR),)
48  LANGS += java
49endif
50ifneq ($(R),)
51  LANGS += R
52endif
53
54.PHONY: all install test clean distclean tcl octave matlab perl python ruby java R
55
56all:
57        for i in $(LANGS) ; do \
58          $(MAKE) -C $$i all || exit 1 ;\
59        done
60
61install:
62        for i in $(LANGS) ; do \
63          $(MAKE) -C $$i install || exit 1 ;\
64        done
65
66test:
67        for i in $(LANGS) ; do \
68          $(MAKE) -C $$i test || exit 1 ;\
69        done
70
71clean:
72        for i in $(LANGS) ; do \
73          $(MAKE) -C $$i clean ;\
74        done
75
76distclean:
77        for i in $(LANGS) ; do \
78          $(MAKE) -C $$i distclean ;\
79        done
80        $(RM) Makefile *~
Note: See TracBrowser for help on using the repository browser.