Mercurial > octave-nkf
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 |
rev | line source |
---|---|
2136 | 1 # Makefile for octave's examples directory |
2 # | |
7017 | 3 # Copyright (C) 1996, 1997, 2003, 2005, 2006, 2007 John W. Eaton |
4 # | |
7016 | 5 # This file is part of Octave. |
6 # | |
7 # Octave is free software; you can redistribute it and/or modify it | |
8 # under the terms of the GNU General Public License as published by the | |
9 # Free Software Foundation; either version 3 of the License, or (at | |
10 # your option) any later version. | |
11 # | |
12 # Octave is distributed in the hope that it will be useful, but WITHOUT | |
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 # for more details. | |
16 # | |
17 # You should have received a copy of the GNU General Public License | |
18 # along with Octave; see the file COPYING. If not, see | |
19 # <http://www.gnu.org/licenses/>. | |
2136 | 20 |
6572 | 21 EXAMPLE_SOURCES = |
22 | |
23 | |
2136 | 24 TOPDIR = .. |
25 | |
26 srcdir = @srcdir@ | |
27 top_srcdir = @top_srcdir@ | |
28 VPATH = @srcdir@ | |
29 | |
30 include $(TOPDIR)/Makeconf | |
31 | |
32 INSTALL = @INSTALL@ | |
33 INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
2661 | 34 INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
2136 | 35 INSTALL_DATA = @INSTALL_DATA@ |
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 | 41 SCRIPTS = info-emacs-info info-emacs-octave-help |
42 | |
6572 | 43 SOURCES = \ |
44 addtwomatrices.cc \ | |
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 | 47 firstmexdemo.c \ |
6572 | 48 fortdemo.cc \ |
49 fortsub.f \ | |
50 funcdemo.cc \ | |
51 globaldemo.cc \ | |
52 hello.cc \ | |
53 helloworld.cc \ | |
54 make_int.cc \ | |
6594 | 55 mycell.c \ |
56 myfeval.c \ | |
57 myfevalf.f \ | |
58 myfunc.c \ | |
59 myhello.c \ | |
60 mypow2.c \ | |
6595 | 61 myprop.c \ |
6594 | 62 myset.c \ |
63 mysparse.c \ | |
64 mystring.c \ | |
65 mystruct.c \ | |
6572 | 66 octave.desktop.in \ |
67 oregonator.cc \ | |
68 oregonator.m \ | |
6594 | 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 | 71 stringdemo.cc \ |
72 structdemo.cc \ | |
73 unwinddemo.cc | |
2136 | 74 |
5470 | 75 IMAGE_FILES = $(srcdir)/octave-sombrero.png |
76 IMAGE_FILES_NO_DIR = $(notdir $(IMAGE_FILES)) | |
77 | |
6797 | 78 DISTFILES = $(addprefix $(srcdir)/, Makefile.in $(SOURCES) $(SCRIPTS)) \ |
6796 | 79 $(IMAGE_FILES) |
2624 | 80 |
2136 | 81 SUBDIRS = |
82 | |
83 DISTSUBDIRS = | |
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 | 86 .PHONY: all |
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 | 92 octave.desktop: octave.desktop.in Makefile ../Makeconf |
93 echo "making $@ from $<" | |
94 $(SED) < $< > $@-t \ | |
95 -e "s|%OCTAVE_IMAGEDIR%|${imagedir}|" \ | |
96 -e "s|%OCTAVE_PREFIX%|${prefix}|" | |
7449 | 97 mv $@-t $@ |
5466 | 98 |
2811 | 99 install install-strip: |
2645 | 100 for f in $(SCRIPTS); do \ |
4413 | 101 $(INSTALL_SCRIPT) $(srcdir)/$$f $(DESTDIR)$(archlibdir)/$$f; \ |
2645 | 102 done |
5554 | 103 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(imagedir) |
104 for f in $(IMAGE_FILES_NO_DIR); do \ | |
105 rm -f $(DESTDIR)$(imagedir)/$$f; \ | |
106 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(imagedir)/$$f; \ | |
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 | 109 $(DESKTOP_FILE_INSTALL) --dir=$(DESTDIR)$(datadir)/applications \ |
5579 | 110 --vendor www.octave.org octave.desktop; \ |
5554 | 111 fi |
2811 | 112 .PHONY: install install-strip |
2418 | 113 |
6150 | 114 uninstall: |
115 for f in $(SCRIPTS); do \ | |
6366 | 116 rm -f $(DESTDIR)$(archlibdir)/$$f; \ |
6150 | 117 done |
118 for f in $(IMAGE_FILES_NO_DIR); do \ | |
119 rm -f $(DESTDIR)$(imagedir)/$$f; \ | |
120 done | |
121 if test -n "$(DESKTOP_FILE_INSTALL)"; then \ | |
6366 | 122 rm -f $(DESTDIR)$(datadir)/applications/www.octave.org-octave.desktop; \ |
6150 | 123 fi |
124 .PHONY: uninstall | |
125 | |
2136 | 126 tags: |
127 ctags $(SOURCES) | |
128 | |
129 TAGS: $(SOURCES) | |
130 etags $(SOURCES) | |
131 | |
2398 | 132 clean mostlyclean: |
133 .PHONY: clean mostlyclean | |
134 | |
2136 | 135 distclean: |
5542 | 136 rm -f Makefile octave.desktop |
2398 | 137 .PHONY: distclean |
2136 | 138 |
139 maintainer-clean: distclean | |
5542 | 140 rm -f tags TAGS |
2398 | 141 .PHONY: maintainer-clean |
2136 | 142 |
143 dist: | |
6467 | 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 | 146 .PHONY: dist |