summaryrefslogtreecommitdiff
path: root/lib/erl
diff options
context:
space:
mode:
authorJames E. King III <jking@apache.org>2019-01-24 17:45:07 -0500
committerJames E. King III <jking@apache.org>2019-01-25 23:33:54 -0500
commitb96c43892a9e89dfa61834505bb25357e80287da (patch)
tree02bbf30d80e6f6ef8c76bc67ad20b90331b6de9d /lib/erl
parent8935c98046dbbdd36ede73c1525f1be9df8da5cd (diff)
downloadthrift-b96c43892a9e89dfa61834505bb25357e80287da.tar.gz
THRIFT-4717: fix up make clean with autoconf
Diffstat (limited to 'lib/erl')
-rw-r--r--lib/erl/Makefile.am22
1 files changed, 16 insertions, 6 deletions
diff --git a/lib/erl/Makefile.am b/lib/erl/Makefile.am
index 06323b4a7..fdfc9eb6b 100644
--- a/lib/erl/Makefile.am
+++ b/lib/erl/Makefile.am
@@ -67,16 +67,26 @@ install: all
done
uninstall:
- rm -rf $(DESTDIR)$(ERLANG_INSTALL_LIB_DIR_thrift)
+ $(RM) -rf $(DESTDIR)$(ERLANG_INSTALL_LIB_DIR_thrift)
-clean:
- rm -f .generated
- rm -rf test/gen-erl/
- rm -f $(THRIFT_OMIT_FILE)
+clean-local:
$(REBAR) clean
+ $(RM) .generated
+ $(RM) -r .rebar/
+ $(RM) -r deps/
+ $(RM) -r test/gen-erl/
+ $(RM) $(THRIFT_OMIT_FILE)
maintainer-clean-local:
- rm -rf ebin
+ $(RM) -r ebin/
+
+dist-hook:
+ $(RM) $(distdir)/.generated
+ $(RM) -r $(distdir)/.rebar/
+ $(RM) -r $(distdir)/deps/
+ $(RM) -r $(distdir)/ebin/
+ $(RM) -r $(distdir)/test/gen-erl/
+ $(RM) $(distdir)/$(THRIFT_OMIT_FILE)
EXTRA_DIST = \
include \