Mercurial > hg > octave-lyh
annotate examples/Makefile.in @ 9523:0ce82753dd72
more configure changes for libraries
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 13 Aug 2009 18:20:31 -0400 |
parents | fbb43bc17a4d |
children |
rev | line source |
---|---|
2136 | 1 # Makefile for octave's examples directory |
2 # | |
8920 | 3 # Copyright (C) 1996, 1997, 2003, 2005, 2006, 2007, 2008, 2009 John W. Eaton |
7017 | 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 |
21 TOPDIR = .. | |
22 | |
23 srcdir = @srcdir@ | |
24 top_srcdir = @top_srcdir@ | |
25 VPATH = @srcdir@ | |
26 | |
27 include $(TOPDIR)/Makeconf | |
28 | |
29 INSTALL = @INSTALL@ | |
30 INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
2661 | 31 INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
2136 | 32 INSTALL_DATA = @INSTALL_DATA@ |
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 | 38 SCRIPTS = info-emacs-info info-emacs-octave-help |
39 | |
6572 | 40 SOURCES = \ |
41 addtwomatrices.cc \ | |
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 | 44 firstmexdemo.c \ |
6572 | 45 fortdemo.cc \ |
46 fortsub.f \ | |
47 funcdemo.cc \ | |
48 globaldemo.cc \ | |
49 hello.cc \ | |
50 helloworld.cc \ | |
51 make_int.cc \ | |
6594 | 52 mycell.c \ |
53 myfeval.c \ | |
54 myfevalf.f \ | |
55 myfunc.c \ | |
56 myhello.c \ | |
57 mypow2.c \ | |
6595 | 58 myprop.c \ |
6594 | 59 myset.c \ |
60 mysparse.c \ | |
61 mystring.c \ | |
62 mystruct.c \ | |
6572 | 63 octave.desktop.in \ |
64 oregonator.cc \ | |
65 oregonator.m \ | |
6594 | 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 | 68 stringdemo.cc \ |
69 structdemo.cc \ | |
70 unwinddemo.cc | |
2136 | 71 |
5470 | 72 IMAGE_FILES = $(srcdir)/octave-sombrero.png |
73 IMAGE_FILES_NO_DIR = $(notdir $(IMAGE_FILES)) | |
74 | |
6797 | 75 DISTFILES = $(addprefix $(srcdir)/, Makefile.in $(SOURCES) $(SCRIPTS)) \ |
6796 | 76 $(IMAGE_FILES) |
2624 | 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 | 79 .PHONY: all |
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 | 85 octave.desktop: octave.desktop.in Makefile ../Makeconf |
86 echo "making $@ from $<" | |
87 $(SED) < $< > $@-t \ | |
88 -e "s|%OCTAVE_IMAGEDIR%|${imagedir}|" \ | |
89 -e "s|%OCTAVE_PREFIX%|${prefix}|" | |
7449 | 90 mv $@-t $@ |
5466 | 91 |
2811 | 92 install install-strip: |
2645 | 93 for f in $(SCRIPTS); do \ |
4413 | 94 $(INSTALL_SCRIPT) $(srcdir)/$$f $(DESTDIR)$(archlibdir)/$$f; \ |
2645 | 95 done |
5554 | 96 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(imagedir) |
97 for f in $(IMAGE_FILES_NO_DIR); do \ | |
98 rm -f $(DESTDIR)$(imagedir)/$$f; \ | |
99 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(imagedir)/$$f; \ | |
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 | 102 $(DESKTOP_FILE_INSTALL) --dir=$(DESTDIR)$(datadir)/applications \ |
5579 | 103 --vendor www.octave.org octave.desktop; \ |
5554 | 104 fi |
2811 | 105 .PHONY: install install-strip |
2418 | 106 |
6150 | 107 uninstall: |
108 for f in $(SCRIPTS); do \ | |
6366 | 109 rm -f $(DESTDIR)$(archlibdir)/$$f; \ |
6150 | 110 done |
111 for f in $(IMAGE_FILES_NO_DIR); do \ | |
112 rm -f $(DESTDIR)$(imagedir)/$$f; \ | |
113 done | |
114 if test -n "$(DESKTOP_FILE_INSTALL)"; then \ | |
6366 | 115 rm -f $(DESTDIR)$(datadir)/applications/www.octave.org-octave.desktop; \ |
6150 | 116 fi |
117 .PHONY: uninstall | |
118 | |
2136 | 119 tags: |
120 ctags $(SOURCES) | |
121 | |
122 TAGS: $(SOURCES) | |
123 etags $(SOURCES) | |
124 | |
2398 | 125 clean mostlyclean: |
126 .PHONY: clean mostlyclean | |
127 | |
8718
c74c9692add7
Run some clean targets on sub-directory @polynomial
Rafael Laboissiere <rafael@debian.org>
parents:
8708
diff
changeset
|
128 distclean:: |
5542 | 129 rm -f Makefile octave.desktop |
2398 | 130 .PHONY: distclean |
2136 | 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 | 133 rm -f tags TAGS |
2398 | 134 .PHONY: maintainer-clean |
2136 | 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 | 139 dist: |
6467 | 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 | 142 .PHONY: dist |