source: trunk/examples/app-fermi/Makefile.in @ 3471

Last change on this file since 3471 was 3471, checked in by ldelgass, 12 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@
12INSTALL_PROGRAM = ${INSTALL} -m 755
13INSTALL_DATA    = ${INSTALL} -m 644
14INSTALL_SCRIPT  = ${INSTALL} -m 644
15
16F77 =        @F77@
17CC =         @CC@
18CXX =        @CXX@
19RUBY =       @RUBY@
20PERL =       @PERL@
21TCLSH =      @TCLSH@
22PYTHON =     @PYTHON@
23MEX =        @MEX@
24MKOCTFILE2 = @MKOCTFILE2@
25MKOCTFILE3 = @MKOCTFILE3@
26OCTAVE =     $(MKOCTFILE2) $(MKOCTFILE3)
27JAVAC =      @JAVAC@
28R =          @R@
29
30.PHONY: all install clean distclean tcl cee fortran octave matlab perl python ruby java 2.0 wrapper
31
32LANGS = cee tcl wrapper 2.0
33ifneq ($(F77),)
34    LANGS += fortran
35endif
36ifneq ($(OCTAVE),)
37    LANGS += octave
38endif
39ifneq ($(MEX),)
40    LANGS += matlab
41endif
42ifneq ($(PERL),)
43    LANGS += perl
44endif
45ifneq ($(PYTHON),)
46    LANGS += python
47endif
48ifneq ($(RUBY),)
49    LANGS += ruby
50endif
51ifneq ($(JAVAC),)
52    LANGS += java
53endif
54ifneq ($(R),)
55    LANGS += R
56endif
57
58all:   
59        for i in $(LANGS) ; do \
60           $(MAKE) -C $$i all || exit 1 ; \
61        done
62
63install:
64        for i in $(LANGS) ; do \
65           $(MAKE) -C $$i install || exit 1 ; \
66        done
67
68clean:
69        for i in $(LANGS) ; do \
70           $(MAKE) -C $$i clean || exit 1 ; \
71        done
72
73distclean:
74        for i in $(LANGS) ; do \
75           $(MAKE) -C $$i distclean || exit 1 ; \
76        done
77        $(RM) Makefile
Note: See TracBrowser for help on using the repository browser.