summaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2017-06-24 00:29:32 +0530
committerPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2017-06-24 01:18:57 +0530
commite9907120fa9797054e94e1b8d26ad7af0a373b0a (patch)
tree0c7b7073e3fd13f67276abc3084f715f57db41fc /rpc
parenta2dff3381ac1d14bd42d478a6c96216750009741 (diff)
dist: do not package the rpcgen generated files
This patch fixes rpcgen file stat issue. rpcgen, before generating a file, it first stats the file, in case if file already exists, it do not try to override, instead bails out. [...] Making all in rpcl make[3]: Entering directory `/builddir/build/BUILD/gluster-block-0.2.1/rpc/rpcl' rpcgen -h -o ../../rpc/rpcl/block.h block.x file `../../rpc/rpcl/block.h' already exists and may be overwritten make[3]: Leaving directory `/builddir/build/BUILD/gluster-block-0.2.1/rpc/rpcl' make[3]: *** [block.h] Error 1 [...] So the fix will be not to package the rpcgen generated file in the source tarball. Change-Id: I1d136a25c49aeea2d84e96bf065fe46bf0214a13 Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'rpc')
-rw-r--r--rpc/rpcl/Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/rpc/rpcl/Makefile.am b/rpc/rpcl/Makefile.am
index 8a8ada4..38b1dbf 100644
--- a/rpc/rpcl/Makefile.am
+++ b/rpc/rpcl/Makefile.am
@@ -21,3 +21,8 @@ block_clnt.c: block.x
block_svc.c: block.x
rpcgen -m -o $(top_builddir)/rpc/rpcl/$@ $^
+
+dist-hook:
+ find $(distdir) -type f \
+ -not -name 'block.x' -not -name 'rpc-pragmas.h' \
+ -not -name 'block_svc.h' -not -name 'Makefile.*' -delete