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

Last change on this file was 5649, checked in by ldelgass, 9 years ago

Fix app-fermi Makefile to install C example if ENABLE_LANG in set

File size: 1.6 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
16CC              = @CC@
17CXX             = @CXX@
18F77             = @F77@
19HAVE_RUBY_H     = @HAVE_RUBY_H@
20JAVAC           = @JAVAC@
21JAVA_INC_DIR    = @JAVA_INC_DIR@
22MEX             = @MEX@
23MKOCTFILE2      = @MKOCTFILE2@
24MKOCTFILE3      = @MKOCTFILE3@
25OCTAVE          = $(MKOCTFILE2) $(MKOCTFILE3)
26PERL            = @PERL@
27PYTHON          = @PYTHON_DISTUTILS@
28PYTHON          = @PYTHON@
29R               = @R@
30RUBY            = @RUBY@
31TCLSH           = @TCLSH@
32ENABLE_LANG     = @ENABLE_LANG@
33
34.PHONY: all install clean distclean tcl cee fortran octave matlab perl python ruby java 2.0 wrapper
35
36LANGS = cee
37ifneq ($(ENABLE_LANG),)
38  LANGS += tcl wrapper 2.0
39  ifneq ($(F77),)
40      LANGS += fortran
41  endif
42  ifneq ($(OCTAVE),)
43      LANGS += octave
44  endif
45  ifneq ($(MEX),)
46      LANGS += matlab
47  endif
48  ifneq ($(PERL),)
49      LANGS += perl
50  endif
51  ifneq ($(PYTHON),)
52      LANGS += python
53  endif
54  ifneq ($(RUBY),)
55    ifeq ($(HAVE_RUBY_H),yes)
56      LANGS += ruby
57    endif
58  endif
59  ifneq ($(JAVA_INC_DIR),)
60      LANGS += java
61  endif
62  ifneq ($(R),)
63      LANGS += R
64  endif
65endif
66
67all:   
68        for i in $(LANGS) ; do \
69           $(MAKE) -C $$i all || exit 1 ; \
70        done
71
72install:
73        for i in $(LANGS) ; do \
74           $(MAKE) -C $$i install || exit 1 ; \
75        done
76
77clean:
78        for i in $(LANGS) ; do \
79           $(MAKE) -C $$i clean || exit 1 ; \
80        done
81
82distclean:
83        for i in $(LANGS) ; do \
84           $(MAKE) -C $$i distclean || exit 1 ; \
85        done
86        $(RM) Makefile
Note: See TracBrowser for help on using the repository browser.