readutmp, boot-time: Work around a Cygwin 3.5.3 bug.
[gnulib.git] / modules / parse-datetime
blob1645660abe0229811202a48d45d7207017d8e284
1 Description:
2 Convert a date/time string to linear time.
4 Files:
5 doc/parse-datetime.texi
6 lib/parse-datetime.h
7 lib/parse-datetime.y
8 m4/tm_gmtoff.m4
9 m4/parse-datetime.m4
11 Depends-on:
12 assert-h
13 bison
14 c99
15 c-ctype
16 stdbool
17 gettime
18 gettext-h
19 idx
20 intprops
21 inttypes
22 mktime
23 nstrftime
24 setenv
25 stdckdint
26 unsetenv
27 time-h
28 time_r
29 time_rz
30 timegm
32 configure.ac:
33 gl_PARSE_DATETIME
35 Makefile.am:
36 # The Automake generated .y.c rule is broken: When executed in a VPATH build,
37 #   - The .c file gets generated in the build directory. But since it requires
38 #     special tools to rebuild it, we need to distribute it in the tarballs,
39 #     and by the GNU Coding Standards
40 #     <https://www.gnu.org/prep/standards/html_node/Makefile-Basics.html>
41 #     the file should be generated in the source directory.
42 #   - The #line directives in the .c file refer to a nonexistent file once it
43 #     has been moved from the build directory to the source directory. This
44 #     leads to error if 'lcov' is used later.
45 # Additionally, here we assume GNU Bison and therefore don't need the ylwrap
46 # script.
47 # Therefore we override this rule.
48 parse-datetime.c: parse-datetime.y
49         $(AM_V_YACC)$(PARSE_DATETIME_BISON) $(YFLAGS) $(AM_YFLAGS) $(srcdir)/parse-datetime.y \
50         && test ':' = '$(PARSE_DATETIME_BISON)' || { \
51           sed -e 's|".*/parse-datetime\.y"|"parse-datetime.y"|' \
52               -e 's|"parse-datetime\.tab\.c"|"parse-datetime.c"|' \
53               < parse-datetime.tab.c > parse-datetime.c-tmp \
54           && rm -f parse-datetime.tab.c \
55           && mv parse-datetime.c-tmp $(srcdir)/parse-datetime.c; \
56         }
57 lib_SOURCES += parse-datetime.y
58 BUILT_SOURCES += parse-datetime.c
59 MOSTLYCLEANFILES += parse-datetime.tab.c parse-datetime.c-tmp
60 MAINTAINERCLEANFILES += parse-datetime.c
61 EXTRA_DIST += parse-datetime.c
63 Include:
64 "parse-datetime.h"
66 License:
67 LGPLv2+
69 Maintainer:
70 Paul Eggert