2 Convert a date/time string to linear time.
5 doc/parse-datetime.texi
33 # This rule overrides the Automake generated .y.c rule, to ensure that the
34 # parse-datetime.c file gets generated in the source directory, not in the
36 parse-datetime.c: parse-datetime.y
37 $(AM_V_GEN)$(SHELL) $(YLWRAP) $(srcdir)/parse-datetime.y \
38 y.tab.c parse-datetime.c \
39 y.tab.h parse-datetime.h \
40 y.output parse-datetime.output \
41 -- $(YACC) $(YFLAGS) $(AM_YFLAGS) && \
42 sed -e 's|".*/parse-datetime.y"|"parse-datetime.y"|' \
43 < parse-datetime.c > parse-datetime.c-t && \
44 rm -f parse-datetime.c && \
45 mv parse-datetime.c-t $(srcdir)/parse-datetime.c
46 lib_SOURCES += parse-datetime.y
47 BUILT_SOURCES += parse-datetime.c
48 MOSTLYCLEANFILES += parse-datetime.c-t
49 MAINTAINERCLEANFILES += parse-datetime.c
50 EXTRA_DIST += parse-datetime.c