summaryrefslogtreecommitdiff
path: root/ext/fiddle/depend
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fiddle/depend')
-rw-r--r--ext/fiddle/depend17
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/fiddle/depend b/ext/fiddle/depend
index 89623db708..6b59b31804 100644
--- a/ext/fiddle/depend
+++ b/ext/fiddle/depend
@@ -25,4 +25,21 @@ build-libffi: $(LIBFFI_A)
build-libffi $(LIBFFI_A):
$(Q) $(SUBMAKE_LIBFFI)
+clean-libffi:
+ $(Q) $(SUBMAKE_LIBFFI) clean
+
+distclean-libffi:
+ $(Q) $(SUBMAKE_LIBFFI) distclean
+ $(Q) $(RM) $(LIBFFI_DIR)/local.exp
+ $(Q) $(RUBY) -rfileutils -e 'FileUtils.rmdir(Dir.glob(ARGV[0]+"/**/"), :parents=>true)' $(LIBFFI_DIR)
+
+realclean-libffi:
+ $(Q) $(RMDIRS) $(LIBFFI_DIR)
+
+clean-none distclean-none realclean-none:
+
+clean: clean-$(LIBFFI_CLEAN)
+distclean: distclean-$(LIBFFI_CLEAN)
+realclean: realclean-$(LIBFFI_CLEAN)
+
configure: configure-libffi