diff --git a/src/sql/Makefile b/src/sql/Makefile index 6b13e5a..d3194a9 100644 --- a/src/sql/Makefile +++ b/src/sql/Makefile @@ -240,6 +240,7 @@ distdir: $(DISTFILES) || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done + $(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) @@ -351,6 +352,9 @@ distclean-generic clean-generic maintainer-clean-generic clean \ mostlyclean distclean maintainer-clean +dist-hook: + rm -f $(distdir)/parser.c $(distdir)/parser.h $(distdir)/lexer.c + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff --git a/src/sql/Makefile.am b/src/sql/Makefile.am index 55efc41..e767922 100644 --- a/src/sql/Makefile.am +++ b/src/sql/Makefile.am @@ -4,3 +4,6 @@ LDADD = ../libmdb/libmdb.la LIBS = `glib-config --libs` $(READLINE_LIBS) @LEXLIB@ mdb_sql_SOURCES = mdbsql.c main.c parser.y lexer.l YACC = yacc -d + +dist-hook: + rm -f $(distdir)/parser.c $(distdir)/parser.h $(distdir)/lexer.c diff --git a/src/sql/Makefile.in b/src/sql/Makefile.in index eaeb951..dd5778e 100644 --- a/src/sql/Makefile.in +++ b/src/sql/Makefile.in @@ -240,6 +240,7 @@ distdir: $(DISTFILES) || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done + $(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) @@ -351,6 +352,9 @@ distclean-generic clean-generic maintainer-clean-generic clean \ mostlyclean distclean maintainer-clean +dist-hook: + rm -f $(distdir)/parser.c $(distdir)/parser.h $(distdir)/lexer.c + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: