mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 22:41:30 +03:00
Fix it so that the JSAPI bindings are rebuilt if sources are touched
This commit is contained in:
parent
478b57c5d7
commit
25f0bcbaee
1
Makefile
1
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...
|
||||
|
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user