summaryrefslogtreecommitdiffstats
path: root/rpc/xdr/src/Makefile.am
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2017-05-04 12:26:26 +0200
committerNiels de Vos <ndevos@redhat.com>2017-05-05 11:31:33 +0000
commit93ecfcddbfc6bdc77a720f55dbd51fc256961d68 (patch)
tree38cc92c0d3c3b4a7143282c9f2ff582a5ab397e1 /rpc/xdr/src/Makefile.am
parent8375b3d70d5c6268c6770b42a18b2e1bc09e411e (diff)
build: 'make cscope' requires generated .c and .h XDR files
When running 'make cscope' on a clean configured tree (before building anything), it fails because of missing files unders rpc/xdr/src/. These files are symlinked from generated files in the rpc/xdr/gen/ directory. In order to create the symlinks for 'make cscope', a target needs to specify how these symlinks are created. Change-Id: I473c90e10d915ee438425cf0f806c0531b9f582a BUG: 1447966 Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: https://review.gluster.org/17176 Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Diffstat (limited to 'rpc/xdr/src/Makefile.am')
-rw-r--r--rpc/xdr/src/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/rpc/xdr/src/Makefile.am b/rpc/xdr/src/Makefile.am
index 2f3a6cc1005..77f545646d6 100644
--- a/rpc/xdr/src/Makefile.am
+++ b/rpc/xdr/src/Makefile.am
@@ -28,3 +28,7 @@ nodist_libgfxdr_la_HEADERS = $(XDRHEADERS)
libgfxdr_ladir = $(includedir)/glusterfs/rpc
CLEANFILES = $(XDRSOURCES) $(XDRHEADERS)
+
+# Generate the .c and .h symlinks from the ../gen/*.x files
+$(XDRSOURCES) $(XDRHEADERS):
+ $(MAKE) -C ../gen $^