# title	   makefile for yodl2html-post

depth = ../..
NAME = yodl2html-post

MODULE_LIBS= ../lib

EXTRA_DIST_FILES = VERSION

STEPMAKE_TEMPLATES=c executable
include $(depth)/make/stepmake.make 

default: default-with-lexer $(EXECUTABLE)

$(outdir)/lexer.c: $(outdir)/parser.h

THE_LEXER = $(wildcard lexer.l)

default-with-lexer: lexer.l
ifeq ($(strip $(THE_LEXER)),)
	$(MAKE)
endif

lexer.l: $(outdir)/lexer.l
	cp $< $@


VERSION: $(depth)/VERSION
	cp $< $@

