summaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@gmail.com>2019-09-03 11:32:39 +0530
committerAmar Tumballi <amarts@gmail.com>2019-09-05 16:39:42 +0000
commit66bf17321655225d1096da4f2b5270f02afd102d (patch)
tree970aae23455da35e4c66ab53a3fe228327c13645 /rpc
parent43635716e6bd5bd5925fa9194b0853ee919a742d (diff)
rpc/xdr: fixes in Makefile
there is no need to cleanup the .x files. Fixes: bz#1743094 Change-Id: I89d8deb3939c83069709c701cb8f1972e3746168 Signed-off-by: Amar Tumballi <amarts@gmail.com>
Diffstat (limited to 'rpc')
-rw-r--r--rpc/xdr/src/Makefile.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/rpc/xdr/src/Makefile.am b/rpc/xdr/src/Makefile.am
index 05f4167..0e9c377 100644
--- a/rpc/xdr/src/Makefile.am
+++ b/rpc/xdr/src/Makefile.am
@@ -36,7 +36,7 @@ nodist_libgfxdr_la_HEADERS = $(XDRHEADERS)
libgfxdr_ladir = $(includedir)/glusterfs/rpc
-CLEANFILES = $(XDRSOURCES) $(XDRHEADERS) $(XDRGENFILES)
+CLEANFILES = $(XDRSOURCES) $(XDRHEADERS)
# trick automake into doing BUILT_SOURCES magic
BUILT_SOURCES = $(XDRHEADERS) $(XDRSOURCES)
@@ -78,3 +78,8 @@ $(XDRHEADERS): $(XDRGENFILES)
.PHONY : $(XDRGENFILES)
$(XDRGENFILES):
@if [ ! -e $@ ]; then ln -s $(xdrsrc)/$@ . ; fi;
+
+clean-local:
+ @if [ $(top_builddir) != $(top_srcdir) ]; then \
+ rm -f $(xdrdst)/*.x; \
+ fi