1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2017-02-11 10:33:05 +00:00
parent 78295b6b86
commit 0da70829f1

View file

@ -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)