# Makefile for l2a  27 dec. 1988 [gh]
#-----------------------------------------------------------------------------
# Abstract:
#    Filter to detexify texts (handles both tex and latex).
#
# Compilation:
#    Tested using a Sun 3/50 and SunOS 3.5.  Believed to be portable.
#-----------------------------------------------------------------------------

OBJ	= l2a.o
SHR	= l2a.tex Makefile l2a.l l2a.1
BINDIR	= /local/bin
MANDIR	= /local/man

l2a:		$(OBJ)
	cc  -o l2a $(OBJ) -ll

$(OBJ):	l2a.l

install:
	cp l2a $(BINDIR)/l2a
	cp l2a.1 $(MANDIR)/man1/l2a.1

clean:
	\rm -f l2a.txt l2a.c lex.yy.c l2a l2a.aux l2a.log $(OBJ) *~

test:
	\rm -f l2a.txt
	l2a < l2a.tex > l2a.txt

dvi:
	latex l2a.tex

shar:
	shar -a $(SHR) > l2a.shar

# EOF