summaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2015-05-23 19:41:56 +0200
committerNiels de Vos <ndevos@redhat.com>2015-05-28 02:33:37 -0700
commit6678b760e26567aa248d60f69d8f177690cc7071 (patch)
tree437d142590023b05fea67f18c93264c7b5677eca /rpc
parent38a5cd8c136640d23288aca0afe19a82e1b320f8 (diff)
build: do not include rpcgen generated files in "make dist"
The .c and .h files are generated by rpcgen, there is no need to include them in the "make dist" tarball. BUG: 1198849 Change-Id: Ie6281720e4d485d2b84d98efccfc7053594d1542 Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/10897 Tested-by: NetBSD Build System Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'rpc')
-rw-r--r--rpc/xdr/src/Makefile.am9
1 files changed, 6 insertions, 3 deletions
diff --git a/rpc/xdr/src/Makefile.am b/rpc/xdr/src/Makefile.am
index e27528d0e01..eae7c9b673d 100644
--- a/rpc/xdr/src/Makefile.am
+++ b/rpc/xdr/src/Makefile.am
@@ -15,14 +15,17 @@ libgfxdr_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
libgfxdr_la_LDFLAGS = -version-info $(LIBGFXDR_LT_VERSION)
-libgfxdr_la_SOURCES = $(XDRSOURCES) xdr-generic.c xdr-nfs3.c msg-nfs3.c
+libgfxdr_la_SOURCES = xdr-generic.c xdr-nfs3.c msg-nfs3.c
+nodist_libgfxdr_la_SOURCES = $(XDRSOURCES)
-noinst_HEADERS = $(XDRHEADERS) xdr-generic.h xdr-nfs3.h msg-nfs3.h glusterfs3.h
+noinst_HEADERS = xdr-generic.h xdr-nfs3.h msg-nfs3.h glusterfs3.h
-CLEANFILES = $(XDRSOURCES) $(XDRHEADERS)
+BUILT_SOURCES = $(XDRSOURCES) $(XDRHEADERS)
EXTRA_DIST = $(XDRGENFILES)
+CLEANFILES = $(XDRSOURCES) $(XDRHEADERS)
+
xdrsrc=$(top_srcdir)/rpc/xdr/src
glusterfs3-xdr.c: glusterfs3-xdr.x glusterfs3-xdr.h
$(top_srcdir)/build-aux/xdrgen source $(xdrsrc)/`basename ${@:.c=.x}`