###############################################################################
#                                                                             #
#  Make file for installing Barcode formatting in Lout (Version 1.1)          #
#                                                                             #
#  Peter Samuel                                                               #
#  15 May 1996                                                                #
#                                                                             #
#     make install      Install the Barcode files.                            #
#     make uninstall    Undo the effect of make install                       #
#                                                                             #
#  Most installations of Lout.Barcode should require only the following       #
#  steps.  If something goes wrong, start again with "make uninstall".        #
#                                                                             #
#  (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.                                                  #
#                                                                             #
#  (3) Execute "make install".  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

install:
	@echo ""
	@echo "(a) Copying font defs file barcodes into $(LIBDIR)/include"
	cp barcodes $(LIBDIR)/include/barcodes
	chmod 755 $(LIBDIR)/include/barcodes
	@echo ""
	@echo "(b) Copying font description file bc39.lpg into $(LIBDIR)/include"
	cp bc39.lpg $(LIBDIR)/include/bc39.lpg
	chmod 755 $(LIBDIR)/include/bc39.lpg
	@echo ""
	@echo "(c) Copying encoding vector file BC39.LCM into $(LIBDIR)/maps"
	cp BC39.LCM $(LIBDIR)/maps/BC39.LCM
	chmod 755 $(LIBDIR)/maps/BC39.LCM
	@echo ""
	@echo "(d) Copying font metrics file into $(LIBDIR)/font/BC39"
	cp BC39 $(LIBDIR)/font/BC39
	chmod 755 $(LIBDIR)/font/BC39

uninstall:
	@echo ""
	@echo "(a) Removing font defs file $(LIBDIR)/include/barcodes"
	rm -f $(LIBDIR)/include/barcodes
	@echo ""
	@echo "(b) Removing font description file $(LIBDIR)/include/bc39.lpg"
	rm -f $(LIBDIR)/include/bc39.lpg
	@echo ""
	@echo "(c) Removing encoding vector file $(LIBDIR)/maps/BC39.LCM"
	rm -f $(LIBDIR)/maps/BC39.LCM
	@echo ""
	@echo "(d) Removing font metrics file $(LIBDIR)/font/BC39"
	rm -f $(LIBDIR)/font/BC39
