annotate examples/Makefile.in @ 12119:e320928eeb3a release-3-2-x release-3-2-4

version 3.2.4
author Jaroslav Hajek <highegg@gmail.com>
date Fri, 22 Jan 2010 12:43:12 +0100
parents fbb43bc17a4d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2136
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
1 # Makefile for octave's examples directory
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
2 #
8920
eb63fbe60fab update copyright notices
John W. Eaton <jwe@octave.org>
parents: 8718
diff changeset
3 # Copyright (C) 1996, 1997, 2003, 2005, 2006, 2007, 2008, 2009 John W. Eaton
7017
a1dbe9d80eee [project @ 2007-10-12 21:27:11 by jwe]
jwe
parents: 7016
diff changeset
4 #
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
5 # This file is part of Octave.
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
6 #
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
7 # Octave is free software; you can redistribute it and/or modify it
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
8 # under the terms of the GNU General Public License as published by the
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
9 # Free Software Foundation; either version 3 of the License, or (at
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
10 # your option) any later version.
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
11 #
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
12 # Octave is distributed in the hope that it will be useful, but WITHOUT
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
14 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
15 # for more details.
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
16 #
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
17 # You should have received a copy of the GNU General Public License
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
18 # along with Octave; see the file COPYING. If not, see
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6797
diff changeset
19 # <http://www.gnu.org/licenses/>.
2136
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
20
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
21 TOPDIR = ..
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
22
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
23 srcdir = @srcdir@
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
24 top_srcdir = @top_srcdir@
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
25 VPATH = @srcdir@
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
26
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
27 include $(TOPDIR)/Makeconf
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
28
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
29 INSTALL = @INSTALL@
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
30 INSTALL_PROGRAM = @INSTALL_PROGRAM@
2661
49d6c6ee7b03 [project @ 1997-02-04 05:51:43 by jwe]
jwe
parents: 2645
diff changeset
31 INSTALL_SCRIPT = @INSTALL_SCRIPT@
2136
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
32 INSTALL_DATA = @INSTALL_DATA@
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
33
9254
fbb43bc17a4d add missing Makefile in examples/@FIRfilter
Jaroslav Hajek <highegg@gmail.com>
parents: 8920
diff changeset
34 SUBDIRS = @polynomial @FIRfilter
8221
06094fa570a3 Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents: 8097
diff changeset
35
06094fa570a3 Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents: 8097
diff changeset
36 DISTSUBDIRS = $(SUBDIRS)
06094fa570a3 Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents: 8097
diff changeset
37
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2588
diff changeset
38 SCRIPTS = info-emacs-info info-emacs-octave-help
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2588
diff changeset
39
6572
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
40 SOURCES = \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
41 addtwomatrices.cc \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
42 celldemo.cc \
8097
804c60f92fb1 Add explanationation of initializing the interpreter in a standalone program
David Bateman <dbateman@free.fr>
parents: 7512
diff changeset
43 embedded.cc \
6577
f72d6d4b735a [project @ 2007-04-25 15:54:59 by jwe]
jwe
parents: 6572
diff changeset
44 firstmexdemo.c \
6572
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
45 fortdemo.cc \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
46 fortsub.f \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
47 funcdemo.cc \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
48 globaldemo.cc \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
49 hello.cc \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
50 helloworld.cc \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
51 make_int.cc \
6594
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
52 mycell.c \
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
53 myfeval.c \
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
54 myfevalf.f \
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
55 myfunc.c \
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
56 myhello.c \
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
57 mypow2.c \
6595
55586d763de1 [project @ 2007-04-27 15:31:10 by dbateman]
dbateman
parents: 6594
diff changeset
58 myprop.c \
6594
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
59 myset.c \
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
60 mysparse.c \
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
61 mystring.c \
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
62 mystruct.c \
6572
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
63 octave.desktop.in \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
64 oregonator.cc \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
65 oregonator.m \
6594
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
66 paramdemo.cc \
8097
804c60f92fb1 Add explanationation of initializing the interpreter in a standalone program
David Bateman <dbateman@free.fr>
parents: 7512
diff changeset
67 standalone.cc \
6572
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
68 stringdemo.cc \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
69 structdemo.cc \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
70 unwinddemo.cc
2136
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
71
5470
6fc86e60819d [project @ 2005-09-23 19:18:46 by jwe]
jwe
parents: 5468
diff changeset
72 IMAGE_FILES = $(srcdir)/octave-sombrero.png
6fc86e60819d [project @ 2005-09-23 19:18:46 by jwe]
jwe
parents: 5468
diff changeset
73 IMAGE_FILES_NO_DIR = $(notdir $(IMAGE_FILES))
6fc86e60819d [project @ 2005-09-23 19:18:46 by jwe]
jwe
parents: 5468
diff changeset
74
6797
5b00586ccd27 [project @ 2007-07-25 15:49:17 by jwe]
jwe
parents: 6796
diff changeset
75 DISTFILES = $(addprefix $(srcdir)/, Makefile.in $(SOURCES) $(SCRIPTS)) \
6796
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6595
diff changeset
76 $(IMAGE_FILES)
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2588
diff changeset
77
8221
06094fa570a3 Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents: 8097
diff changeset
78 all: $(SUBDIRS) octave.desktop
2136
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
79 .PHONY: all
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
80
8221
06094fa570a3 Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents: 8097
diff changeset
81 $(SUBDIRS):
06094fa570a3 Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents: 8097
diff changeset
82 $(MAKE) -C $@ all
06094fa570a3 Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents: 8097
diff changeset
83 .PHONY: $(SUBDIRS)
06094fa570a3 Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents: 8097
diff changeset
84
5466
6a4f87723932 [project @ 2005-09-23 16:42:30 by jwe]
jwe
parents: 5196
diff changeset
85 octave.desktop: octave.desktop.in Makefile ../Makeconf
6a4f87723932 [project @ 2005-09-23 16:42:30 by jwe]
jwe
parents: 5196
diff changeset
86 echo "making $@ from $<"
6a4f87723932 [project @ 2005-09-23 16:42:30 by jwe]
jwe
parents: 5196
diff changeset
87 $(SED) < $< > $@-t \
6a4f87723932 [project @ 2005-09-23 16:42:30 by jwe]
jwe
parents: 5196
diff changeset
88 -e "s|%OCTAVE_IMAGEDIR%|${imagedir}|" \
6a4f87723932 [project @ 2005-09-23 16:42:30 by jwe]
jwe
parents: 5196
diff changeset
89 -e "s|%OCTAVE_PREFIX%|${prefix}|"
7449
3184b36b03de [project @ 2008-02-06 08:27:00 by jwe]
jwe
parents: 7017
diff changeset
90 mv $@-t $@
5466
6a4f87723932 [project @ 2005-09-23 16:42:30 by jwe]
jwe
parents: 5196
diff changeset
91
2811
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2689
diff changeset
92 install install-strip:
2645
8fbc52dfc4c3 [project @ 1997-01-29 17:51:11 by jwe]
jwe
parents: 2624
diff changeset
93 for f in $(SCRIPTS); do \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 3028
diff changeset
94 $(INSTALL_SCRIPT) $(srcdir)/$$f $(DESTDIR)$(archlibdir)/$$f; \
2645
8fbc52dfc4c3 [project @ 1997-01-29 17:51:11 by jwe]
jwe
parents: 2624
diff changeset
95 done
5554
3f1a39aa2012 [project @ 2005-11-30 15:54:38 by jwe]
jwe
parents: 5542
diff changeset
96 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(imagedir)
3f1a39aa2012 [project @ 2005-11-30 15:54:38 by jwe]
jwe
parents: 5542
diff changeset
97 for f in $(IMAGE_FILES_NO_DIR); do \
3f1a39aa2012 [project @ 2005-11-30 15:54:38 by jwe]
jwe
parents: 5542
diff changeset
98 rm -f $(DESTDIR)$(imagedir)/$$f; \
3f1a39aa2012 [project @ 2005-11-30 15:54:38 by jwe]
jwe
parents: 5542
diff changeset
99 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(imagedir)/$$f; \
3f1a39aa2012 [project @ 2005-11-30 15:54:38 by jwe]
jwe
parents: 5542
diff changeset
100 done
7512
59bee17bc192 ignore errors installing octave.desktop file
John W. Eaton <jwe@octave.org>
parents: 7449
diff changeset
101 -if test -n "$(DESKTOP_FILE_INSTALL)"; then \
5554
3f1a39aa2012 [project @ 2005-11-30 15:54:38 by jwe]
jwe
parents: 5542
diff changeset
102 $(DESKTOP_FILE_INSTALL) --dir=$(DESTDIR)$(datadir)/applications \
5579
03d2e1df7c1b [project @ 2005-12-14 03:13:54 by jwe]
jwe
parents: 5554
diff changeset
103 --vendor www.octave.org octave.desktop; \
5554
3f1a39aa2012 [project @ 2005-11-30 15:54:38 by jwe]
jwe
parents: 5542
diff changeset
104 fi
2811
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2689
diff changeset
105 .PHONY: install install-strip
2418
25a26fe3f1d4 [project @ 1996-10-16 17:02:16 by jwe]
jwe
parents: 2417
diff changeset
106
6150
2ad8962722cc [project @ 2006-11-10 00:05:05 by jwe]
jwe
parents: 5579
diff changeset
107 uninstall:
2ad8962722cc [project @ 2006-11-10 00:05:05 by jwe]
jwe
parents: 5579
diff changeset
108 for f in $(SCRIPTS); do \
6366
06f26e174fc9 [project @ 2007-02-28 19:16:49 by jwe]
jwe
parents: 6358
diff changeset
109 rm -f $(DESTDIR)$(archlibdir)/$$f; \
6150
2ad8962722cc [project @ 2006-11-10 00:05:05 by jwe]
jwe
parents: 5579
diff changeset
110 done
2ad8962722cc [project @ 2006-11-10 00:05:05 by jwe]
jwe
parents: 5579
diff changeset
111 for f in $(IMAGE_FILES_NO_DIR); do \
2ad8962722cc [project @ 2006-11-10 00:05:05 by jwe]
jwe
parents: 5579
diff changeset
112 rm -f $(DESTDIR)$(imagedir)/$$f; \
2ad8962722cc [project @ 2006-11-10 00:05:05 by jwe]
jwe
parents: 5579
diff changeset
113 done
2ad8962722cc [project @ 2006-11-10 00:05:05 by jwe]
jwe
parents: 5579
diff changeset
114 if test -n "$(DESKTOP_FILE_INSTALL)"; then \
6366
06f26e174fc9 [project @ 2007-02-28 19:16:49 by jwe]
jwe
parents: 6358
diff changeset
115 rm -f $(DESTDIR)$(datadir)/applications/www.octave.org-octave.desktop; \
6150
2ad8962722cc [project @ 2006-11-10 00:05:05 by jwe]
jwe
parents: 5579
diff changeset
116 fi
2ad8962722cc [project @ 2006-11-10 00:05:05 by jwe]
jwe
parents: 5579
diff changeset
117 .PHONY: uninstall
2ad8962722cc [project @ 2006-11-10 00:05:05 by jwe]
jwe
parents: 5579
diff changeset
118
2136
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
119 tags:
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
120 ctags $(SOURCES)
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
121
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
122 TAGS: $(SOURCES)
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
123 etags $(SOURCES)
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
124
2398
76d255496b89 [project @ 1996-10-13 04:30:01 by jwe]
jwe
parents: 2309
diff changeset
125 clean mostlyclean:
76d255496b89 [project @ 1996-10-13 04:30:01 by jwe]
jwe
parents: 2309
diff changeset
126 .PHONY: clean mostlyclean
76d255496b89 [project @ 1996-10-13 04:30:01 by jwe]
jwe
parents: 2309
diff changeset
127
8718
c74c9692add7 Run some clean targets on sub-directory @polynomial
Rafael Laboissiere <rafael@debian.org>
parents: 8708
diff changeset
128 distclean::
5542
b23c53f26aec [project @ 2005-11-21 16:01:24 by jwe]
jwe
parents: 5527
diff changeset
129 rm -f Makefile octave.desktop
2398
76d255496b89 [project @ 1996-10-13 04:30:01 by jwe]
jwe
parents: 2309
diff changeset
130 .PHONY: distclean
2136
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
131
8718
c74c9692add7 Run some clean targets on sub-directory @polynomial
Rafael Laboissiere <rafael@debian.org>
parents: 8708
diff changeset
132 maintainer-clean:: distclean
5542
b23c53f26aec [project @ 2005-11-21 16:01:24 by jwe]
jwe
parents: 5527
diff changeset
133 rm -f tags TAGS
2398
76d255496b89 [project @ 1996-10-13 04:30:01 by jwe]
jwe
parents: 2309
diff changeset
134 .PHONY: maintainer-clean
2136
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
135
8718
c74c9692add7 Run some clean targets on sub-directory @polynomial
Rafael Laboissiere <rafael@debian.org>
parents: 8708
diff changeset
136 distclean maintainer-clean::
c74c9692add7 Run some clean targets on sub-directory @polynomial
Rafael Laboissiere <rafael@debian.org>
parents: 8708
diff changeset
137 @$(subdir-for-command)
c74c9692add7 Run some clean targets on sub-directory @polynomial
Rafael Laboissiere <rafael@debian.org>
parents: 8708
diff changeset
138
2136
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
139 dist:
6467
a84de7048629 [project @ 2007-03-27 16:05:15 by jwe]
jwe
parents: 6366
diff changeset
140 ln $(DISTFILES) ../`cat ../.fname`/examples
8708
7faf87906ca3 examples/Makefile.in (dist): create subdirs of examples, not dist
John W. Eaton <jwe@octave.org>
parents: 8705
diff changeset
141 for dir in $(DISTSUBDIRS); do mkdir ../`cat ../.fname`/examples/$$dir; $(MAKE) -C $$dir $@; done
2136
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
142 .PHONY: dist