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
RevLine 
[1018]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
[2709]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@
[1018]29
[3471]30.PHONY: all install clean distclean tcl cee fortran octave matlab perl python ruby java 2.0 wrapper
[1731]31
32LANGS = cee tcl wrapper 2.0
[1018]33ifneq ($(F77),)
[1731]34    LANGS += fortran
[1018]35endif
[2180]36ifneq ($(OCTAVE),)
[1731]37    LANGS += octave
[1018]38endif
39ifneq ($(MEX),)
[1731]40    LANGS += matlab
[1018]41endif
42ifneq ($(PERL),)
[1731]43    LANGS += perl
[1018]44endif
45ifneq ($(PYTHON),)
[1731]46    LANGS += python
[1018]47endif
48ifneq ($(RUBY),)
[1731]49    LANGS += ruby
[1018]50endif
[2311]51ifneq ($(JAVAC),)
[1731]52    LANGS += java
[1722]53endif
[2709]54ifneq ($(R),)
55    LANGS += R
56endif
[1018]57
[1731]58all:   
59        for i in $(LANGS) ; do \
60           $(MAKE) -C $$i all || exit 1 ; \
61        done
[1018]62
[1731]63install:
64        for i in $(LANGS) ; do \
65           $(MAKE) -C $$i install || exit 1 ; \
66        done
[1018]67
[1731]68clean:
69        for i in $(LANGS) ; do \
70           $(MAKE) -C $$i clean || exit 1 ; \
71        done
[1018]72
73distclean:
[1731]74        for i in $(LANGS) ; do \
[3471]75           $(MAKE) -C $$i distclean || exit 1 ; \
[1731]76        done
[1018]77        $(RM) Makefile
Note: See TracBrowser for help on using the repository browser.