summaryrefslogtreecommitdiffstats
path: root/rpc/xdr/gen
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2019-05-05 13:19:31 +0530
committerAmar Tumballi <amarts@redhat.com>2019-07-10 03:38:42 +0000
commitc2e514c18df8fe1dfe06bc147f94756838f67c41 (patch)
treeae4e608b39e669c5e38a74fa99279e6f9613310d /rpc/xdr/gen
parent670299cf4fc90c1c61032057b6ff570fee7a448e (diff)
rpc/xdr: include nfs specific files in build only if gNFS is enabled
updates: bz#1193929 Change-Id: I2b85fd0a04c77815a154f445ec8fb4da37dcbe40 Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'rpc/xdr/gen')
-rw-r--r--rpc/xdr/gen/Makefile.am11
1 files changed, 8 insertions, 3 deletions
diff --git a/rpc/xdr/gen/Makefile.am b/rpc/xdr/gen/Makefile.am
index 194718f9bba..3e799b4c644 100644
--- a/rpc/xdr/gen/Makefile.am
+++ b/rpc/xdr/gen/Makefile.am
@@ -1,6 +1,11 @@
-XDRGENFILES = glusterfs3-xdr.x glusterfs4-xdr.x cli1-xdr.x nlm4-xdr.x nsm-xdr.x \
- rpc-common-xdr.x glusterd1-xdr.x acl3-xdr.x portmap-xdr.x \
- mount3udp.x changelog-xdr.x
+if BUILD_GNFS
+ NFS_XDRS = nlm4-xdr.x nsm-xdr.x acl3-xdr.x mount3udp.x
+endif
+
+XDRGENFILES = glusterfs3-xdr.x glusterfs4-xdr.x cli1-xdr.x \
+ rpc-common-xdr.x glusterd1-xdr.x portmap-xdr.x \
+ changelog-xdr.x ${NFS_XDRS}
+
XDRHEADERS = $(XDRGENFILES:.x=.h)
XDRSOURCES = $(XDRGENFILES:.x=.c)