Last change
on this file since 5649 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 | |
---|
2 | bindir = @bindir@ |
---|
3 | datadir = @datadir@ |
---|
4 | datarootdir = @datarootdir@ |
---|
5 | exec_prefix = @exec_prefix@ |
---|
6 | includedir = @includedir@ |
---|
7 | libdir = @libdir@ |
---|
8 | mandir = @mandir@ |
---|
9 | prefix = @prefix@ |
---|
10 | |
---|
11 | INSTALL = @INSTALL@ |
---|
12 | INSTALL_PROGRAM = ${INSTALL} -m 755 |
---|
13 | INSTALL_DATA = ${INSTALL} -m 644 |
---|
14 | INSTALL_SCRIPT = ${INSTALL} -m 644 |
---|
15 | |
---|
16 | CC = @CC@ |
---|
17 | CXX = @CXX@ |
---|
18 | F77 = @F77@ |
---|
19 | HAVE_RUBY_H = @HAVE_RUBY_H@ |
---|
20 | JAVAC = @JAVAC@ |
---|
21 | JAVA_INC_DIR = @JAVA_INC_DIR@ |
---|
22 | MEX = @MEX@ |
---|
23 | MKOCTFILE2 = @MKOCTFILE2@ |
---|
24 | MKOCTFILE3 = @MKOCTFILE3@ |
---|
25 | OCTAVE = $(MKOCTFILE2) $(MKOCTFILE3) |
---|
26 | PERL = @PERL@ |
---|
27 | PYTHON = @PYTHON_DISTUTILS@ |
---|
28 | PYTHON = @PYTHON@ |
---|
29 | R = @R@ |
---|
30 | RUBY = @RUBY@ |
---|
31 | TCLSH = @TCLSH@ |
---|
32 | ENABLE_LANG = @ENABLE_LANG@ |
---|
33 | |
---|
34 | .PHONY: all install clean distclean tcl cee fortran octave matlab perl python ruby java 2.0 wrapper |
---|
35 | |
---|
36 | LANGS = cee |
---|
37 | ifneq ($(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 |
---|
65 | endif |
---|
66 | |
---|
67 | all: |
---|
68 | for i in $(LANGS) ; do \ |
---|
69 | $(MAKE) -C $$i all || exit 1 ; \ |
---|
70 | done |
---|
71 | |
---|
72 | install: |
---|
73 | for i in $(LANGS) ; do \ |
---|
74 | $(MAKE) -C $$i install || exit 1 ; \ |
---|
75 | done |
---|
76 | |
---|
77 | clean: |
---|
78 | for i in $(LANGS) ; do \ |
---|
79 | $(MAKE) -C $$i clean || exit 1 ; \ |
---|
80 | done |
---|
81 | |
---|
82 | distclean: |
---|
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.