#
# "$Id: Makefile 5 2006-04-19 23:47:43Z mike $"
#
#   Installation Makefile for the CUPS Windows Driver
#
#   Copyright 2006 by Easy Software Products, all rights reserved.
#
#   These coded instructions, statements, and computer programs are the
#   property of Easy Software Products and are protected by Federal
#   copyright law.  Distribution and use rights are outlined in the file
#   "LICENSE.txt" which should have been included with this file.  If this
#   file is missing or damaged please contact Easy Software Products
#   at:
#
#       Attn: CUPS Licensing Information
#       Easy Software Products
#       44141 Airport View Drive, Suite 204
#       Hollywood, Maryland 20636-3142 USA
#
#       Voice: (301) 373-9600
#       EMail: cups-info@cups.org
#         WWW: http://www.cups.org
#

.SILENT:

#
# Driver files to install...
#

FILES		=	cups6.inf cups6.ini cupsps6.dll cupsui6.dll
DRIVERDIR	=	$(BUILDROOT)`cups-config --datadir`/drivers


#
# Make all targets...
#

all:
	echo Type make install to install the CUPS driver files.


#
# Install driver files...
#

install:
	echo Creating directory $(DRIVERDIR)...
	mkdir -p $(DRIVERDIR)
	chmod 755 $(DRIVERDIR)
	for file in $(FILES); do\
		echo Installing $$file... ;\
		cp i386/$$file $(DRIVERDIR) ;\
		chmod 644 $(DRIVERDIR)/$$file ;\
	done


#
# Uninstall driver files...
#

uninstall:
	for file in $(FILES); do\
		echo Uninstalling $$file... ;\
		rm -f $(DRIVERDIR)/$$file ;\
	done


#
# End of "$Id: Makefile 5 2006-04-19 23:47:43Z mike $".
#
