summaryrefslogtreecommitdiff
path: root/ext/fiddle
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-11 10:33:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-11 10:33:05 +0000
commit0da70829f19a791116a9a164c42c38b2ba12c0b2 (patch)
treee71b7fbd78ec810a7110684be9c62fea2b47d7d2 /ext/fiddle
parent78295b6b86d4ee1a40f4da9e98c41e96a1405451 (diff)
fiddle/depend: build-libffi
* ext/fiddle/depend (build-libffi): get rid of making $(LIBFFI_A) a sole target, which may be empty when installed libffi is found. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fiddle')
-rw-r--r--ext/fiddle/depend11
1 files changed, 3 insertions, 8 deletions
diff --git a/ext/fiddle/depend b/ext/fiddle/depend
index 7e00a6e..c406b29 100644
--- a/ext/fiddle/depend
+++ b/ext/fiddle/depend
@@ -25,30 +25,25 @@ $(LIBFFI_DIR)/Makefile:
$(Q) $(MAKEDIRS) $(LIBFFI_DIR)
$(Q) $(CONFIGURE_LIBFFI)
-build-libffi: $(LIBFFI_A)
-$(LIBFFI_A):
+build-libffi $(LIBFFI_A):
$(Q) $(SUBMAKE_PRE) $(MAKE) $(SUBMAKE_ARG)
clean-none:
clean-libffi:
-libffi/clean: libffi/clean
$(Q) $(SUBMAKE_PRE) $(MAKE) $(SUBMAKE_ARG) clean
distclean-none:
-distclean-libffi: libffi/distclean
-libffi/distclean:
+distclean-libffi:
$(Q) $(SUBMAKE_PRE) $(MAKE) $(SUBMAKE_ARG) distclean
$(Q) $(RM) $(LIBFFI_DIR)/local.exp
$(Q) $(RUBY) -rfileutils -e "FileUtils.rmdir(Dir.glob(ARGV[0]+'/**/{,.*/}'), :parents=>true)" $(LIBFFI_DIR)
realclean-none:
-realclean-libffi: libffi/realclean
-libffi/realclean:
+realclean-libffi:
$(Q) $(RMALL) $(LIBFFI_DIR)
.PHONY: clean-libffi distclean-libffi realclean-libffi
.PHONY: clean-none distclean-none realclean-none
-.PHONY: libffi/clean libffi/distclean libffi/realclean
clean: clean-$(LIBFFI_CLEAN)
distclean: distclean-$(LIBFFI_CLEAN)