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