[Libguestfs] [PATCH] build: manually drop flex-/bison-generated files from dist

Pino Toscano ptoscano at redhat.com
Wed Aug 13 14:46:40 UTC 2014


It seems that Automake cannot handle properly the files generated by
flex and bison, leaving them in the dist tarball.

For now, add a dist-hook to manually prune them from distdir.
---
 builder/Makefile.am | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/builder/Makefile.am b/builder/Makefile.am
index 0b4acd7..6a5cb01 100644
--- a/builder/Makefile.am
+++ b/builder/Makefile.am
@@ -317,3 +317,8 @@ index-parser-c.c index-scan.c index-validate.c: index-parse.h
 index-parse.h: index-parse.y
 	$(MAKE) index-parse.h
 endif
+
+# Apparently there's no clean way with Automake to not have them
+# in the distribution, so just remove them from the distdir.
+dist-hook:
+	rm -f $(distdir)/index-parse.c $(distdir)/index-parse.h $(distdir)/index-scan.c
-- 
1.9.3




More information about the Libguestfs mailing list