view scripts/image/Makefile.in @ 4720:e759d01692db ss-2-1-53

[project @ 2004-01-23 04:13:37 by jwe]
author jwe
date Fri, 23 Jan 2004 04:13:37 +0000
parents 2de7c7452a1e
children cd5cc2a80589
line wrap: on
line source

#
# Makefile for octave's scripts/image directory
#
# John W. Eaton
# jwe@bevo.che.wisc.edu
# University of Wisconsin-Madison
# Department of Chemical Engineering

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 = *.m
IMAGES = *.img

DISTFILES = Makefile.in $(SOURCES) $(IMAGES)

FCN_FILES = $(wildcard $(srcdir)/*.m)
FCN_FILES_NO_DIR = $(notdir $(FCN_FILES))

IMAGE_FILES = $(wildcard $(srcdir)/*.img)
IMAGE_FILES_NO_DIR = $(notdir $(IMAGE_FILES))

BINDISTFILES = $(FCN_FILES) $(IMAGE_FILES)

all:
.PHONY: all

install install-strip:
	$(do-script-install)
	$(top_srcdir)/mkinstalldirs $(DESTDIR)$(imagedir)
	for f in $(IMAGE_FILES_NO_DIR); 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 $(IMAGE_FILES_NO_DIR); \
	  do rm -f $(DESTDIR)$(imagedir)/$$f; \
	done
.PHONY: uninstall

clean:
.PHONY: clean

tags: $(SOURCES)
	ctags $(SOURCES)

TAGS: $(SOURCES)
	etags $(SOURCES)

mostlyclean: clean
.PHONY: mostlyclean

distclean: clean
	rm -f Makefile
.PHONY: distclean

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

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

bin-dist:
	ln $(BINDISTFILES) ../../`cat ../../.fname`/scripts/image
.PHONY: bin-dist