# make phonemic translator
#		Greg Lee, lee@uhccux.uhcc.hawaii.edu, July 1990

all:	eng span
	echo All up to date.

eng.h:	r2x eng.r
	rm -f eng.h
	./r2x <eng.r >eng.h

span.h:	r2x span.r
	rm -f span.h
	./r2x <span.r >span.h

span:	phon.c span.h
	gcc -s -DSPANISH -O -o span phon.c

eng:	phon.c eng.h
	gcc -s -O -o eng phon.c

r2x:	r2x.l
	lex r2x.l
	cc -o r2x lex.yy.c yywrap.c
	@rm lex.yy.c

DIST = MANIFEST Makefile phon.1 r2x.l phon.r span.r

tar:	$(DIST)
	tar cf phon.tar $(DIST)
	compress phon.tar

clean:
	rm -f eng span *.o *~
