view scripts/image/Makefile.in @ 8920:eb63fbe60fab

update copyright notices
author John W. Eaton <jwe@octave.org>
date Sat, 07 Mar 2009 10:41:27 -0500
parents 01fac748b680
children
line wrap: on
line source

# Makefile for octave's scripts/image directory
#
# Copyright (C) 1994, 1995, 1996, 1997, 2002, 2003, 2005, 2006, 2007, 2008
#               John W. Eaton
#
# This file is part of Octave.
# 
# Octave is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 3 of the License, or (at
# your option) any later version.
# 
# Octave is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
# 
# You should have received a copy of the GNU General Public License
# along with Octave; see the file COPYING.  If not, see
# <http://www.gnu.org/licenses/>.

TOPDIR = ../..

script_sub_dir = image

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@

include $(TOPDIR)/Makeconf

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@

SOURCES = __img__.m __img_via_file__.m autumn.m bone.m brighten.m colormap.m \
  contrast.m cool.m copper.m flag.m gmap40.m gray.m gray2ind.m hot.m hsv.m \
  hsv2rgb.m image.m image_viewer.m imagesc.m imfinfo.m imread.m imshow.m \
  imwrite.m ind2gray.m ind2rgb.m jet.m ntsc2rgb.m ocean.m pink.m prism.m \
  rainbow.m rgb2hsv.m rgb2ind.m rgb2ntsc.m saveimage.m spring.m summer.m \
  white.m winter.m

IMAGES = default.img

DISTFILES = $(addprefix $(srcdir)/, Makefile.in $(SOURCES) $(IMAGES))

FCN_FILES = $(addprefix $(srcdir)/, $(SOURCES))
FCN_FILES_NO_DIR = $(notdir $(FCN_FILES))

all: PKG_ADD
.PHONY: all

install install-strip:
	$(do-script-install)
	$(top_srcdir)/mkinstalldirs $(DESTDIR)$(imagedir)
	for f in $(IMAGES); do \
	  rm -f $(DESTDIR)$(imagedir)/$$f; \
	  $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(imagedir)/$$f; \
	done
	$(top_srcdir)/mkinstalldirs $(DESTDIR)$(archlibdir)
.PHONY: install install-strip

uninstall:
	$(do-script-uninstall)
	for f in $(IMAGES); \
	  do rm -f $(DESTDIR)$(imagedir)/$$f; \
	done
.PHONY: uninstall

clean:
.PHONY: clean

PKG_ADD: $(FCN_FILES)
	@echo "making PKG_ADD"
	@$(do-mkpkgadd)

tags: $(SOURCES)
	ctags $(SOURCES)

TAGS: $(SOURCES)
	etags $(SOURCES)

mostlyclean: clean
.PHONY: mostlyclean

distclean: clean
	rm -f Makefile PKG_ADD
.PHONY: distclean

maintainer-clean: distclean
	rm -f tags TAGS
.PHONY: maintainer-clean

dist:
	ln $(DISTFILES) ../../`cat ../../.fname`/scripts/image
.PHONY: dist

check-m-sources:
	@$(do-check-m-sources)
.PHONY: check-m-sources