%.c: %.y
%.yy.c: %.fl
- flex -o$@ $<
+ flex --header=$*.yy.h -o$@ $<
%.tab.c %.tab.h: %.y
bison -d -o $@ $<
# Manual dependencies section
conffile.yy.c: conffile.fl conffile.tab.c
+conffile.yy.h: conffile.yy.c
conffile.tab.c: conffile.y
# End of manual dependencies section
$(CC) $(LDFLAGS) $(ALL_CFLAGS) -o $@ $(OBJECTS) $(LDLIBS)
version.c: Makefile
- echo "char version[]=\"secnet $(VERSION)\";" >version.c
+ echo "#include \"secnet.h\"" >$@.new
+ echo "char version[]=\"secnet $(VERSION)\";" >>$@.new
+ mv -f $@.new $@
install: all
$(INSTALL) -d $(prefix)/share/secnet $(sbindir)