summaryrefslogtreecommitdiff
path: root/ext/fiddle/depend
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-24 06:58:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-24 06:58:34 +0000
commit0a841035df029952e3461ee92b07e686f8e2c262 (patch)
tree2f4676453bc3c5c3a26b7cc8c8143f5e8a5ce5b5 /ext/fiddle/depend
parenta64443987c8e8b8ae6d3558549cc75f4748df973 (diff)
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
Diffstat (limited to 'ext/fiddle/depend')
-rw-r--r--ext/fiddle/depend17
1 files 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