#  Copyright 1994 E. I. du Pont de Nemours & Company
#
#  Permission to use, copy, modify, distribute, and sell this software and
#  its documentation for any purpose is hereby granted without fee,
#  provided that the above Copyright notice appear in all copies and that
#  both that Copyright notice and this permission notice appear in
#  supporting documentation, and that the name of E. I. du Pont de Nemours
#  & Company not be used in advertising or publicity pertaining to
#  distribution of the software without specific, written prior
#  permission.  E. I. du Pont de Nemours & Company makes no representations
#  about the suitability of this software for any purpose.  It is provided
#  "as is" without express or implied warranty.
#
#  E. I. du Pont de Nemours & Company disclaims all warranties with regard
#  to this software, including all implied warranties of merchantability
#  and fitness, in no event shall E. I. du Pont de Nemours & Company be
#  liable for any special, indirect or consequential damages or any
#  damages whatsoever resulting from loss of use, data or profits, whether
#  in an action of contract, negligence or other tortious action, arising
#  out of or in connection with the use or performance of this software.
#

INSTALL = /bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}

LOCALDIR= /usr/local/bin
LOCALMAN= /usr/local/man/man1
LOCALMANEXT= 1
LOCALXDIR= /usr/bin/X11
LOCALXMAN= /usr/X386/man/mann
LOCALXLMAN= /usr/X386/man/man5
LOCALXMANEXT= n
LOCALXLMANEXT= 5

install:
	$(INSTALL_PROGRAM) bin/display $(LOCALXDIR)/display
	$(INSTALL_DATA) man/display.man $(LOCALXMAN)/display.$(LOCALXMANEXT)
	$(INSTALL_PROGRAM) bin/import $(LOCALXDIR)/import
	$(INSTALL_DATA) man/import.man $(LOCALXMAN)/import.$(LOCALXMANEXT)
	$(INSTALL_PROGRAM) bin/montage $(LOCALXDIR)/montage
	$(INSTALL_DATA) man/montage.man $(LOCALXMAN)/montage.$(LOCALXMANEXT)
	$(INSTALL_PROGRAM) bin/animate $(LOCALXDIR)/animate
	$(INSTALL_DATA) man/animate.man $(LOCALXMAN)/animate.$(LOCALXMANEXT)
	$(INSTALL_PROGRAM) bin/convert $(LOCALXDIR)/convert
	$(INSTALL_DATA) man/convert.man $(LOCALXMAN)/convert.$(LOCALXMANEXT)
	$(INSTALL_PROGRAM) bin/mogrify $(LOCALXDIR)/mogrify
	$(INSTALL_DATA) man/mogrify.man $(LOCALXMAN)/mogrify.$(LOCALXMANEXT)
	$(INSTALL_PROGRAM) bin/combine $(LOCALXDIR)/combine
	$(INSTALL_DATA) man/combine.man $(LOCALXMAN)/combine.$(LOCALXMANEXT)
	$(INSTALL_PROGRAM) bin/segment $(LOCALXDIR)/segment
	$(INSTALL_DATA) man/segment.man $(LOCALXMAN)/segment.$(LOCALXMANEXT)

install.man:
	$(INSTALL_DATA) man/ImageMagick.man $(LOCALXMAN)/ImageMagick.$(LOCALXMANEXT)
	$(INSTALL_DATA) man/miff.man $(LOCALXLMAN)/miff.$(LOCALXLMANEXT)
	$(INSTALL_DATA) man/quantize.man $(LOCALXLMAN)/quantize.$(LOCALXLMANEXT)

install.view:
	$(INSTALL_PROGRAM) bin/view $(LOCALXDIR)/view

install.xtp:
	$(INSTALL_PROGRAM) xtp/xtp $(LOCALDIR)/xtp
	$(INSTALL_DATA) xtp/xtp.man $(LOCALMAN)/xtp.$(LOCALMANEXT)

install.get:
	$(INSTALL_PROGRAM) xtp/get $(LOCALDIR)/get
