source: trunk/lang/octave/Makefile.in @ 3719

Last change on this file since 3719 was 3471, checked in by ldelgass, 11 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: 920 bytes
Line 
1
2bindir          = @bindir@
3datadir         = @datadir@
4datarootdir     = @datarootdir@
5exec_prefix     = @exec_prefix@
6includedir      = @includedir@
7libdir          = @libdir@
8mandir          = @mandir@
9prefix          = @prefix@
10srcdir          = @srcdir@
11
12INSTALL         = @INSTALL@
13RM              = rm -f
14MKOCTFILE2      = @MKOCTFILE2@
15MKOCTFILE3      = @MKOCTFILE3@
16
17LANGS           =
18ifneq ($(MKOCTFILE3),)
19  LANGS += octave3
20endif
21ifneq ($(MKOCTFILE2),)
22  LANGS += octave2
23endif
24
25.PHONY: all install test clean distclean octave2 octave3
26
27all:
28        for i in $(LANGS) ; do \
29          $(MAKE) -C $$i all || exit 1 ;\
30        done
31
32install:
33        for i in $(LANGS) ; do \
34          $(MAKE) -C $$i install || exit 1 ;\
35        done
36
37test:
38        for i in $(LANGS) ; do \
39          $(MAKE) -C $$i test || exit 1 ;\
40        done
41
42clean:
43        for i in $(LANGS) ; do \
44          $(MAKE) -C $$i clean ;\
45        done
46
47distclean:
48        for i in $(LANGS) ; do \
49          $(MAKE) -C $$i distclean ;\
50        done
51        $(RM) Makefile *~
52
Note: See TracBrowser for help on using the repository browser.