# $Id: Makefile.dist,v 1.10 2010/01/06 17:01:58 murch Exp $

YFLAGS = -d

BUILT_SOURCES = addr.c addr.h addr-lex.c \
	sieve.c sieve.h sieve-lex.c

dist: $(BUILT_SOURCES)

addr.c addr.h: addr.y
	$(YACC) $(YFLAGS) -p addr addr.y
	mv -f y.tab.c addr.c
	mv -f y.tab.h addr.h

sieve.c sieve.h: sieve.y
	$(YACC) $(YFLAGS) sieve.y
	mv -f y.tab.c sieve.c
	mv -f y.tab.h sieve.h
