From 25f0bcbaee258ba8922ada5d7b33e53a50ae1c78 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 4 Nov 2012 16:57:41 +0000 Subject: [PATCH] Fix it so that the JSAPI bindings are rebuilt if sources are touched --- Makefile | 1 + Makefile.sources.javascript | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 33a10cc17..f512081cd 100644 --- a/Makefile +++ b/Makefile @@ -621,6 +621,7 @@ $(eval $(foreach SOURCE,$(filter %.m,$(SOURCES)), \ ifneq ($(MAKECMDGOALS),clean) -include $(sort $(addprefix $(DEPROOT)/,$(DEPFILES))) +-include $(D_JSAPI_BINDING) endif # And rules to build the objects themselves... diff --git a/Makefile.sources.javascript b/Makefile.sources.javascript index ca0c146ee..ca69da9dc 100644 --- a/Makefile.sources.javascript +++ b/Makefile.sources.javascript @@ -9,6 +9,7 @@ # ---------------------------------------------------------------------------- S_JSAPI_BINDING:= +D_JSAPI_BINDING:= JSAPI_BINDING_htmldocument := javascript/jsapi/htmldocument.bnd JSAPI_BINDING_htmlelement := javascript/jsapi/htmlelement.bnd @@ -25,10 +26,11 @@ JSAPI_BINDING_nodelist := javascript/jsapi/nodelist.bnd define convert_jsapi_binding S_JSAPI_BINDING += $(2) +D_JSAPI_BINDING += $(patsubst %.c,%.d,$(2)) $(2): $(1) $$(VQ)echo " GENBIND: $(1)" - $(Q)nsgenbind -I javascript/WebIDL/ -o $(2) $(1) + $(Q)nsgenbind -I javascript/WebIDL/ -d $(patsubst %.c,%.d,$(2)) -o $(2) $(1) endef @@ -43,7 +45,7 @@ endif ifeq ($(WANT_JS_SOURCE),YES) -S_JSAPI = +S_JSAPI := S_JAVASCRIPT += content.c jsapi.c $(addprefix jsapi/,$(S_JSAPI))