681
|
1 # Makefile for octave's scripts/image directory |
|
2 # |
7017
|
3 # Copyright (C) 1994, 1995, 1996, 1997, 2002, 2003, 2005, 2006, 2007 |
|
4 # John W. Eaton |
|
5 # |
7016
|
6 # This file is part of Octave. |
|
7 # |
|
8 # Octave is free software; you can redistribute it and/or modify it |
|
9 # under the terms of the GNU General Public License as published by the |
|
10 # Free Software Foundation; either version 3 of the License, or (at |
|
11 # your option) any later version. |
|
12 # |
|
13 # Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 # for more details. |
|
17 # |
|
18 # You should have received a copy of the GNU General Public License |
|
19 # along with Octave; see the file COPYING. If not, see |
|
20 # <http://www.gnu.org/licenses/>. |
681
|
21 |
682
|
22 TOPDIR = ../.. |
681
|
23 |
|
24 script_sub_dir = image |
|
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@ |
|
34 INSTALL_DATA = @INSTALL_DATA@ |
|
35 |
6788
|
36 SOURCES = __img__.m __img_via_file__.m autumn.m bone.m brighten.m colormap.m \ |
6793
|
37 cool.m copper.m flag.m gray.m gray2ind.m hot.m hsv.m hsv2rgb.m image.m \ |
6788
|
38 image_viewer.m imagesc.m imshow.m ind2gray.m ind2rgb.m jet.m loadimage.m \ |
|
39 ntsc2rgb.m ocean.m pink.m prism.m rainbow.m rgb2hsv.m rgb2ind.m \ |
|
40 rgb2ntsc.m saveimage.m spring.m summer.m white.m winter.m |
6283
|
41 |
|
42 IMAGES = default.img |
681
|
43 |
6808
|
44 DISTFILES = $(addprefix $(srcdir)/, Makefile.in $(SOURCES) $(IMAGES)) |
681
|
45 |
6283
|
46 FCN_FILES = $(addprefix $(srcdir)/, $(SOURCES)) |
681
|
47 FCN_FILES_NO_DIR = $(notdir $(FCN_FILES)) |
|
48 |
5597
|
49 all: PKG_ADD |
681
|
50 .PHONY: all |
|
51 |
2811
|
52 install install-strip: |
4225
|
53 $(do-script-install) |
4413
|
54 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(imagedir) |
6808
|
55 for f in $(IMAGES); do \ |
4413
|
56 rm -f $(DESTDIR)$(imagedir)/$$f; \ |
|
57 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(imagedir)/$$f; \ |
686
|
58 done |
4413
|
59 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(archlibdir) |
2811
|
60 .PHONY: install install-strip |
681
|
61 |
|
62 uninstall: |
4225
|
63 $(do-script-uninstall) |
6808
|
64 for f in $(IMAGES); \ |
4413
|
65 do rm -f $(DESTDIR)$(imagedir)/$$f; \ |
686
|
66 done |
681
|
67 .PHONY: uninstall |
|
68 |
|
69 clean: |
|
70 .PHONY: clean |
|
71 |
5597
|
72 PKG_ADD: $(FCN_FILES) |
|
73 @echo "making PKG_ADD" |
|
74 @$(do-mkpkgadd) |
|
75 |
681
|
76 tags: $(SOURCES) |
|
77 ctags $(SOURCES) |
|
78 |
|
79 TAGS: $(SOURCES) |
|
80 etags $(SOURCES) |
|
81 |
|
82 mostlyclean: clean |
|
83 .PHONY: mostlyclean |
|
84 |
|
85 distclean: clean |
5866
|
86 rm -f Makefile PKG_ADD |
681
|
87 .PHONY: distclean |
|
88 |
1391
|
89 maintainer-clean: distclean |
681
|
90 rm -f tags TAGS |
1391
|
91 .PHONY: maintainer-clean |
681
|
92 |
|
93 dist: |
6467
|
94 ln $(DISTFILES) ../../`cat ../../.fname`/scripts/image |
681
|
95 .PHONY: dist |