annotate examples/Makefile.in @ 8221:06094fa570a3

Add some documentation for the OOP code of Octave
author David Bateman <dbateman@free.fr>
date Wed, 15 Oct 2008 20:35:22 +0100
parents 804c60f92fb1
children dba0037e6602
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 #
7017
a1dbe9d80eee [project @ 2007-10-12 21:27:11 by jwe]
jwe
parents: 7016
diff changeset
3 # Copyright (C) 1996, 1997, 2003, 2005, 2006, 2007 John W. Eaton
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
6572
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
21 EXAMPLE_SOURCES =
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
22
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
23
2136
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
24 TOPDIR = ..
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
25
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
26 srcdir = @srcdir@
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
27 top_srcdir = @top_srcdir@
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
28 VPATH = @srcdir@
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
29
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
30 include $(TOPDIR)/Makeconf
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
31
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
32 INSTALL = @INSTALL@
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
33 INSTALL_PROGRAM = @INSTALL_PROGRAM@
2661
49d6c6ee7b03 [project @ 1997-02-04 05:51:43 by jwe]
jwe
parents: 2645
diff changeset
34 INSTALL_SCRIPT = @INSTALL_SCRIPT@
2136
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
35 INSTALL_DATA = @INSTALL_DATA@
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
36
8221
06094fa570a3 Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents: 8097
diff changeset
37 SUBDIRS = polynomial
06094fa570a3 Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents: 8097
diff changeset
38
06094fa570a3 Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents: 8097
diff changeset
39 DISTSUBDIRS = $(SUBDIRS)
06094fa570a3 Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents: 8097
diff changeset
40
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2588
diff changeset
41 SCRIPTS = info-emacs-info info-emacs-octave-help
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2588
diff changeset
42
6572
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
43 SOURCES = \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
44 addtwomatrices.cc \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
45 celldemo.cc \
8097
804c60f92fb1 Add explanationation of initializing the interpreter in a standalone program
David Bateman <dbateman@free.fr>
parents: 7512
diff changeset
46 embedded.cc \
6577
f72d6d4b735a [project @ 2007-04-25 15:54:59 by jwe]
jwe
parents: 6572
diff changeset
47 firstmexdemo.c \
6572
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
48 fortdemo.cc \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
49 fortsub.f \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
50 funcdemo.cc \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
51 globaldemo.cc \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
52 hello.cc \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
53 helloworld.cc \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
54 make_int.cc \
6594
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
55 mycell.c \
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
56 myfeval.c \
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
57 myfevalf.f \
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
58 myfunc.c \
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
59 myhello.c \
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
60 mypow2.c \
6595
55586d763de1 [project @ 2007-04-27 15:31:10 by dbateman]
dbateman
parents: 6594
diff changeset
61 myprop.c \
6594
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
62 myset.c \
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
63 mysparse.c \
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
64 mystring.c \
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
65 mystruct.c \
6572
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
66 octave.desktop.in \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
67 oregonator.cc \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
68 oregonator.m \
6594
5843c11b4006 [project @ 2007-04-27 14:59:58 by jwe]
jwe
parents: 6577
diff changeset
69 paramdemo.cc \
8097
804c60f92fb1 Add explanationation of initializing the interpreter in a standalone program
David Bateman <dbateman@free.fr>
parents: 7512
diff changeset
70 standalone.cc \
6572
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
71 stringdemo.cc \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
72 structdemo.cc \
8e7148b84b59 [project @ 2007-04-25 04:13:44 by jwe]
jwe
parents: 6467
diff changeset
73 unwinddemo.cc
2136
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
74
5470
6fc86e60819d [project @ 2005-09-23 19:18:46 by jwe]
jwe
parents: 5468
diff changeset
75 IMAGE_FILES = $(srcdir)/octave-sombrero.png
6fc86e60819d [project @ 2005-09-23 19:18:46 by jwe]
jwe
parents: 5468
diff changeset
76 IMAGE_FILES_NO_DIR = $(notdir $(IMAGE_FILES))
6fc86e60819d [project @ 2005-09-23 19:18:46 by jwe]
jwe
parents: 5468
diff changeset
77
6797
5b00586ccd27 [project @ 2007-07-25 15:49:17 by jwe]
jwe
parents: 6796
diff changeset
78 DISTFILES = $(addprefix $(srcdir)/, Makefile.in $(SOURCES) $(SCRIPTS)) \
6796
59c0c3637633 [project @ 2007-07-25 15:45:04 by jwe]
jwe
parents: 6595
diff changeset
79 $(IMAGE_FILES)
2624
7e24c1f29db4 [project @ 1997-01-26 04:40:00 by jwe]
jwe
parents: 2588
diff changeset
80
2136
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
81 SUBDIRS =
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
82
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
83 DISTSUBDIRS =
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
84
8221
06094fa570a3 Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents: 8097
diff changeset
85 all: $(SUBDIRS) octave.desktop
2136
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
86 .PHONY: all
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
87
8221
06094fa570a3 Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents: 8097
diff changeset
88 $(SUBDIRS):
06094fa570a3 Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents: 8097
diff changeset
89 $(MAKE) -C $@ all
06094fa570a3 Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents: 8097
diff changeset
90 .PHONY: $(SUBDIRS)
06094fa570a3 Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents: 8097
diff changeset
91
5466
6a4f87723932 [project @ 2005-09-23 16:42:30 by jwe]
jwe
parents: 5196
diff changeset
92 octave.desktop: octave.desktop.in Makefile ../Makeconf
6a4f87723932 [project @ 2005-09-23 16:42:30 by jwe]
jwe
parents: 5196
diff changeset
93 echo "making $@ from $<"
6a4f87723932 [project @ 2005-09-23 16:42:30 by jwe]
jwe
parents: 5196
diff changeset
94 $(SED) < $< > $@-t \
6a4f87723932 [project @ 2005-09-23 16:42:30 by jwe]
jwe
parents: 5196
diff changeset
95 -e "s|%OCTAVE_IMAGEDIR%|${imagedir}|" \
6a4f87723932 [project @ 2005-09-23 16:42:30 by jwe]
jwe
parents: 5196
diff changeset
96 -e "s|%OCTAVE_PREFIX%|${prefix}|"
7449
3184b36b03de [project @ 2008-02-06 08:27:00 by jwe]
jwe
parents: 7017
diff changeset
97 mv $@-t $@
5466
6a4f87723932 [project @ 2005-09-23 16:42:30 by jwe]
jwe
parents: 5196
diff changeset
98
2811
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2689
diff changeset
99 install install-strip:
2645
8fbc52dfc4c3 [project @ 1997-01-29 17:51:11 by jwe]
jwe
parents: 2624
diff changeset
100 for f in $(SCRIPTS); do \
4413
2de7c7452a1e [project @ 2003-05-14 22:27:43 by jwe]
jwe
parents: 3028
diff changeset
101 $(INSTALL_SCRIPT) $(srcdir)/$$f $(DESTDIR)$(archlibdir)/$$f; \
2645
8fbc52dfc4c3 [project @ 1997-01-29 17:51:11 by jwe]
jwe
parents: 2624
diff changeset
102 done
5554
3f1a39aa2012 [project @ 2005-11-30 15:54:38 by jwe]
jwe
parents: 5542
diff changeset
103 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(imagedir)
3f1a39aa2012 [project @ 2005-11-30 15:54:38 by jwe]
jwe
parents: 5542
diff changeset
104 for f in $(IMAGE_FILES_NO_DIR); do \
3f1a39aa2012 [project @ 2005-11-30 15:54:38 by jwe]
jwe
parents: 5542
diff changeset
105 rm -f $(DESTDIR)$(imagedir)/$$f; \
3f1a39aa2012 [project @ 2005-11-30 15:54:38 by jwe]
jwe
parents: 5542
diff changeset
106 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(imagedir)/$$f; \
3f1a39aa2012 [project @ 2005-11-30 15:54:38 by jwe]
jwe
parents: 5542
diff changeset
107 done
7512
59bee17bc192 ignore errors installing octave.desktop file
John W. Eaton <jwe@octave.org>
parents: 7449
diff changeset
108 -if test -n "$(DESKTOP_FILE_INSTALL)"; then \
5554
3f1a39aa2012 [project @ 2005-11-30 15:54:38 by jwe]
jwe
parents: 5542
diff changeset
109 $(DESKTOP_FILE_INSTALL) --dir=$(DESTDIR)$(datadir)/applications \
5579
03d2e1df7c1b [project @ 2005-12-14 03:13:54 by jwe]
jwe
parents: 5554
diff changeset
110 --vendor www.octave.org octave.desktop; \
5554
3f1a39aa2012 [project @ 2005-11-30 15:54:38 by jwe]
jwe
parents: 5542
diff changeset
111 fi
2811
1dd37f97364a [project @ 1997-03-12 23:06:13 by jwe]
jwe
parents: 2689
diff changeset
112 .PHONY: install install-strip
2418
25a26fe3f1d4 [project @ 1996-10-16 17:02:16 by jwe]
jwe
parents: 2417
diff changeset
113
6150
2ad8962722cc [project @ 2006-11-10 00:05:05 by jwe]
jwe
parents: 5579
diff changeset
114 uninstall:
2ad8962722cc [project @ 2006-11-10 00:05:05 by jwe]
jwe
parents: 5579
diff changeset
115 for f in $(SCRIPTS); do \
6366
06f26e174fc9 [project @ 2007-02-28 19:16:49 by jwe]
jwe
parents: 6358
diff changeset
116 rm -f $(DESTDIR)$(archlibdir)/$$f; \
6150
2ad8962722cc [project @ 2006-11-10 00:05:05 by jwe]
jwe
parents: 5579
diff changeset
117 done
2ad8962722cc [project @ 2006-11-10 00:05:05 by jwe]
jwe
parents: 5579
diff changeset
118 for f in $(IMAGE_FILES_NO_DIR); do \
2ad8962722cc [project @ 2006-11-10 00:05:05 by jwe]
jwe
parents: 5579
diff changeset
119 rm -f $(DESTDIR)$(imagedir)/$$f; \
2ad8962722cc [project @ 2006-11-10 00:05:05 by jwe]
jwe
parents: 5579
diff changeset
120 done
2ad8962722cc [project @ 2006-11-10 00:05:05 by jwe]
jwe
parents: 5579
diff changeset
121 if test -n "$(DESKTOP_FILE_INSTALL)"; then \
6366
06f26e174fc9 [project @ 2007-02-28 19:16:49 by jwe]
jwe
parents: 6358
diff changeset
122 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
123 fi
2ad8962722cc [project @ 2006-11-10 00:05:05 by jwe]
jwe
parents: 5579
diff changeset
124 .PHONY: uninstall
2ad8962722cc [project @ 2006-11-10 00:05:05 by jwe]
jwe
parents: 5579
diff changeset
125
2136
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
126 tags:
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
127 ctags $(SOURCES)
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
128
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
129 TAGS: $(SOURCES)
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
130 etags $(SOURCES)
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
131
2398
76d255496b89 [project @ 1996-10-13 04:30:01 by jwe]
jwe
parents: 2309
diff changeset
132 clean mostlyclean:
76d255496b89 [project @ 1996-10-13 04:30:01 by jwe]
jwe
parents: 2309
diff changeset
133 .PHONY: clean mostlyclean
76d255496b89 [project @ 1996-10-13 04:30:01 by jwe]
jwe
parents: 2309
diff changeset
134
2136
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
135 distclean:
5542
b23c53f26aec [project @ 2005-11-21 16:01:24 by jwe]
jwe
parents: 5527
diff changeset
136 rm -f Makefile octave.desktop
2398
76d255496b89 [project @ 1996-10-13 04:30:01 by jwe]
jwe
parents: 2309
diff changeset
137 .PHONY: distclean
2136
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
138
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
139 maintainer-clean: distclean
5542
b23c53f26aec [project @ 2005-11-21 16:01:24 by jwe]
jwe
parents: 5527
diff changeset
140 rm -f tags TAGS
2398
76d255496b89 [project @ 1996-10-13 04:30:01 by jwe]
jwe
parents: 2309
diff changeset
141 .PHONY: maintainer-clean
2136
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
142
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
143 dist:
6467
a84de7048629 [project @ 2007-03-27 16:05:15 by jwe]
jwe
parents: 6366
diff changeset
144 ln $(DISTFILES) ../`cat ../.fname`/examples
8221
06094fa570a3 Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents: 8097
diff changeset
145 for dir in $(DISTSUBDIRS); do mkdir ../`cat ../.fname`/scripts/$$dir; $(MAKE) -C $$dir $@; done
2136
9d666c466d20 [project @ 1996-05-13 03:31:46 by jwe]
jwe
parents:
diff changeset
146 .PHONY: dist