Mercurial > octave-nkf
annotate examples/Makefile.in @ 7948:af10baa63915 ss-3-1-50
3.1.50 snapshot
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 18 Jul 2008 17:42:48 -0400 |
parents | 59bee17bc192 |
children | 804c60f92fb1 |
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 | |
2624 | 37 SCRIPTS = info-emacs-info info-emacs-octave-help |
38 | |
6572 | 39 SOURCES = \ |
40 addtwomatrices.cc \ | |
41 celldemo.cc \ | |
6577 | 42 firstmexdemo.c \ |
6572 | 43 fortdemo.cc \ |
44 fortsub.f \ | |
45 funcdemo.cc \ | |
46 globaldemo.cc \ | |
47 hello.cc \ | |
48 helloworld.cc \ | |
49 make_int.cc \ | |
6594 | 50 mycell.c \ |
51 myfeval.c \ | |
52 myfevalf.f \ | |
53 myfunc.c \ | |
54 myhello.c \ | |
55 mypow2.c \ | |
6595 | 56 myprop.c \ |
6594 | 57 myset.c \ |
58 mysparse.c \ | |
59 mystring.c \ | |
60 mystruct.c \ | |
6572 | 61 octave.desktop.in \ |
62 oregonator.cc \ | |
63 oregonator.m \ | |
6594 | 64 paramdemo.cc \ |
6572 | 65 stringdemo.cc \ |
66 structdemo.cc \ | |
67 unwinddemo.cc | |
2136 | 68 |
5470 | 69 IMAGE_FILES = $(srcdir)/octave-sombrero.png |
70 IMAGE_FILES_NO_DIR = $(notdir $(IMAGE_FILES)) | |
71 | |
6797 | 72 DISTFILES = $(addprefix $(srcdir)/, Makefile.in $(SOURCES) $(SCRIPTS)) \ |
6796 | 73 $(IMAGE_FILES) |
2624 | 74 |
2136 | 75 SUBDIRS = |
76 | |
77 DISTSUBDIRS = | |
78 | |
5466 | 79 all: octave.desktop |
2136 | 80 .PHONY: all |
81 | |
5466 | 82 octave.desktop: octave.desktop.in Makefile ../Makeconf |
83 echo "making $@ from $<" | |
84 $(SED) < $< > $@-t \ | |
85 -e "s|%OCTAVE_IMAGEDIR%|${imagedir}|" \ | |
86 -e "s|%OCTAVE_PREFIX%|${prefix}|" | |
7449 | 87 mv $@-t $@ |
5466 | 88 |
2811 | 89 install install-strip: |
2645 | 90 for f in $(SCRIPTS); do \ |
4413 | 91 $(INSTALL_SCRIPT) $(srcdir)/$$f $(DESTDIR)$(archlibdir)/$$f; \ |
2645 | 92 done |
5554 | 93 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(imagedir) |
94 for f in $(IMAGE_FILES_NO_DIR); do \ | |
95 rm -f $(DESTDIR)$(imagedir)/$$f; \ | |
96 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(imagedir)/$$f; \ | |
97 done | |
7512
59bee17bc192
ignore errors installing octave.desktop file
John W. Eaton <jwe@octave.org>
parents:
7449
diff
changeset
|
98 -if test -n "$(DESKTOP_FILE_INSTALL)"; then \ |
5554 | 99 $(DESKTOP_FILE_INSTALL) --dir=$(DESTDIR)$(datadir)/applications \ |
5579 | 100 --vendor www.octave.org octave.desktop; \ |
5554 | 101 fi |
2811 | 102 .PHONY: install install-strip |
2418 | 103 |
6150 | 104 uninstall: |
105 for f in $(SCRIPTS); do \ | |
6366 | 106 rm -f $(DESTDIR)$(archlibdir)/$$f; \ |
6150 | 107 done |
108 for f in $(IMAGE_FILES_NO_DIR); do \ | |
109 rm -f $(DESTDIR)$(imagedir)/$$f; \ | |
110 done | |
111 if test -n "$(DESKTOP_FILE_INSTALL)"; then \ | |
6366 | 112 rm -f $(DESTDIR)$(datadir)/applications/www.octave.org-octave.desktop; \ |
6150 | 113 fi |
114 .PHONY: uninstall | |
115 | |
2136 | 116 tags: |
117 ctags $(SOURCES) | |
118 | |
119 TAGS: $(SOURCES) | |
120 etags $(SOURCES) | |
121 | |
2398 | 122 clean mostlyclean: |
123 .PHONY: clean mostlyclean | |
124 | |
2136 | 125 distclean: |
5542 | 126 rm -f Makefile octave.desktop |
2398 | 127 .PHONY: distclean |
2136 | 128 |
129 maintainer-clean: distclean | |
5542 | 130 rm -f tags TAGS |
2398 | 131 .PHONY: maintainer-clean |
2136 | 132 |
133 dist: | |
6467 | 134 ln $(DISTFILES) ../`cat ../.fname`/examples |
2136 | 135 .PHONY: dist |