###############################################################################
#                                                                             #
#  Make file for installing Barcode formatting in Lout (Version 1.1)          #
#                                                                             #
#  Peter Samuel                                                               #
#  14 May 1996                                                                #
#                                                                             #
#     make install.306     Install the Barcode files for Lout 3.06 or below.  # 
#     make uninstall.306   Undo the effects of make install.306               #
#                                                                             #
#     make install.307     Install the Barcode files for Lout 3.07 or above.  # 
#     make uninstall.307   Undo the effects of make install.307               #
#                                                                             #
#  ALL installation options MUST be made in this Makefile. They will be       #
#  carried through to the lower Makefiles. (You can change the lower          #
#  level Makefiles but changing this one is easier.                           #
#                                                                             #
#  Most installations of Lout.Barcode should require only the following       #
#  steps.  If something goes wrong, start again with "make uninstall.306"     #
#  or "make uninstall.307"                                                    #
#                                                                             #
#  (1) Make sure that Lout is installed on your system, Version 3 or later.   #
#                                                                             #
#  (2) Set the following macro defined below to an appropriate value:         #
#                                                                             #
#      LIBDIR  Directory where Lout's libraries go (this directory is         #
#              assumed to exist, since Lout should be already installed).     #
#                                                                             #
#      This macro should be set to the same value as the corresponding macro  #
#      in the Lout makefile.                                                  #
#                                                                             #
#  (3a) Execute "make install.306".  This will do the following things:       #
#                                                                             #
#      (a) Copy file barcodes into directory $(LIBDIR)/include.               #
#                                                                             #
#      (b) Copy file bc39.lpg into directory $(LIBDIR)/include.               #
#                                                                             #
#      (c) Copy file BC39.CEV into directory $(LIBDIR)/evec.                  #
#                                                                             #
#      (d) Copy file BC39 directory $(LIBDIR)/font.                           #
#                                                                             #
#  (3b) Execute "make install.307".  This will do the following things:       #
#                                                                             #
#      (a) Copy file barcodes into directory $(LIBDIR)/include.               #
#                                                                             #
#      (b) Copy file bc39.lpg into directory $(LIBDIR)/include.               #
#                                                                             #
#      (c) Copy file BC39.LCM into directory $(LIBDIR)/maps.                  #
#                                                                             #
#      (d) Copy file BC39 directory $(LIBDIR)/font.                           #
#                                                                             #
#  Mail peter@uniq.com.au if you have any problems.                           #
#                                                                             #
###############################################################################

LIBDIR	= /usr/local/lib/lout

default:
	@echo "You must specify which version of Lout you will be using."
	@echo
	@echo "If you have Lout 3.06 or below use"
	@echo
	@echo "    make install.306"
	@echo
	@echo "If you have Lout 3.07 or later use"
	@echo
	@echo "    make install.307"
	@echo

install.306:
	@echo Make install for Lout 3.06
	@(								\
	    cd 3.06;							\
	    ${MAKE} -${MAKEFLAGS} BINDIR=$(BINDIR) LIBDIR=$(LIBDIR)	\
		install							\
	)

install.307:
	@echo Make install for Lout 3.07
	@(								\
	    cd 3.07;							\
	    ${MAKE} -${MAKEFLAGS} BINDIR=$(BINDIR) LIBDIR=$(LIBDIR)	\
		install							\
	)

uninstall.306:
	@echo Make uninstall for Lout 3.06
	@(								\
	    cd 3.06;							\
	    ${MAKE} -${MAKEFLAGS} BINDIR=$(BINDIR) LIBDIR=$(LIBDIR)	\
		uninstall						\
	)

uninstall.307:
	@echo Make uninstall for Lout 3.07
	@(								\
	    cd 3.07;							\
	    ${MAKE} -${MAKEFLAGS} BINDIR=$(BINDIR) LIBDIR=$(LIBDIR)	\
		uninstall						\
	)

306:	install.306
307:	install.307
