From 0a841035df029952e3461ee92b07e686f8e2c262 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 24 Dec 2014 06:58:34 +0000 Subject: fiddle: depend rules * ext/fiddle/depend: mark PHONY targets, and workaround of unexpected DEPEND_RULES on mswin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/fiddle/depend | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/ext/fiddle/depend b/ext/fiddle/depend index 9146ef07a8..47ba44e9a6 100644 --- a/ext/fiddle/depend +++ b/ext/fiddle/depend @@ -15,8 +15,18 @@ $(STATIC_LIB) $(RUBYARCHDIR)/$(DLLIB) $(DLLIB): $(LIBFFI_A) $(OBJS): $(FFI_H) +.PHONY: .FORCE hdr + +.FORCE: + hdr: $(FFI_H) -configure-libffi $(FFI_H): + +configure-libffi build-libffi: .FORCE +configure-libffi \ +$(LIBFFI_DIR)/include/ffi.h \ +$(LIBFFI_DIR)/include/ffitarget.h \ +$(LIBFFI_DIR)/fficonfig.h \ +$(LIBFFI_DIR)/Makefile: $(Q) $(MAKEDIRS) $(LIBFFI_DIR) $(Q) $(CONFIGURE_LIBFFI) @@ -35,10 +45,11 @@ distclean-libffi: realclean-libffi: $(Q) $(RMALL) $(LIBFFI_DIR) -clean-none distclean-none realclean-none: +.PHONY clean-libffi distclean-libffi realclean-libffi: .FORCE +.PHONY clean-none distclean-none realclean-none: .FORCE clean: clean-$(LIBFFI_CLEAN) distclean: distclean-$(LIBFFI_CLEAN) realclean: realclean-$(LIBFFI_CLEAN) -configure: configure-libffi +.PHONY configure: configure-libffi -- cgit v1.2.3