From 66bf17321655225d1096da4f2b5270f02afd102d Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 3 Sep 2019 11:32:39 +0530 Subject: 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 --- rpc/xdr/src/Makefile.am | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'rpc') diff --git a/rpc/xdr/src/Makefile.am b/rpc/xdr/src/Makefile.am index 05f4167076f..0e9c377ec93 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 -- cgit