X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fgetdate;h=2f0fdb279c70f9ef5209326a0310be452133098e;hb=ec919e79c7278b5b69aced77c453e5b165accfcf;hp=653fd7a53cedc51182bde3b946cab7506da360d5;hpb=3ac9552429c5a500717e1d3d129c32f7d0ea37a3;p=gnulib.git diff --git a/modules/getdate b/modules/getdate index 653fd7a53..2f0fdb279 100644 --- a/modules/getdate +++ b/modules/getdate @@ -10,19 +10,35 @@ m4/tm_gmtoff.m4 m4/getdate.m4 Depends-on: +c-ctype stdbool gettime +intprops mktime setenv +unsetenv time +verify xalloc configure.ac: gl_GETDATE Makefile.am: +# This rule overrides the Automake generated .y.c rule, to ensure that the +# getdate.c file gets generated in the source directory, not in the build +# directory. +getdate.c: getdate.y + $(AM_V_GEN)$(SHELL) $(YLWRAP) $(srcdir)/getdate.y \ + y.tab.c getdate.c \ + y.tab.h getdate.h \ + y.output getdate.output \ + -- $(YACC) $(YFLAGS) $(AM_YFLAGS) && \ + mv getdate.c getdate.c-t && \ + mv getdate.c-t $(srcdir)/getdate.c lib_SOURCES += getdate.y BUILT_SOURCES += getdate.c +MOSTLYCLEANFILES += getdate.c-t MAINTAINERCLEANFILES += getdate.c EXTRA_DIST += getdate.c