diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-11-04 16:57:41 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-11-04 16:57:41 +0000 |
commit | 25f0bcbaee258ba8922ada5d7b33e53a50ae1c78 (patch) | |
tree | 272f569b32ff1402bd8bbd09ee505e6a774c026d | |
parent | 478b57c5d7b683aca78d2fbadc904caf75ddf9b7 (diff) | |
download | netsurf-25f0bcbaee258ba8922ada5d7b33e53a50ae1c78.tar.gz netsurf-25f0bcbaee258ba8922ada5d7b33e53a50ae1c78.tar.bz2 |
Fix it so that the JSAPI bindings are rebuilt if sources are touched
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | Makefile.sources.javascript | 6 |
2 files changed, 5 insertions, 2 deletions
@@ -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)) |