diff options
Diffstat (limited to 'content/handlers/javascript/duktape/Makefile')
-rw-r--r-- | content/handlers/javascript/duktape/Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/content/handlers/javascript/duktape/Makefile b/content/handlers/javascript/duktape/Makefile index 7c9e60a8b..638ca4458 100644 --- a/content/handlers/javascript/duktape/Makefile +++ b/content/handlers/javascript/duktape/Makefile @@ -4,17 +4,27 @@ # Included by javascript/Makefile # -content/handlers/javascript/duktape/dukky.c: $(OBJROOT)/duktape/binding.h $(OBJROOT)/duktape/generics.js.inc +content/handlers/javascript/duktape/dukky.c: \ + $(OBJROOT)/duktape/binding.h \ + $(OBJROOT)/duktape/generics.js.inc \ + $(OBJROOT)/duktape/polyfill.js.inc BINDINGS := $(wildcard content/handlers/javascript/duktape/*.bnd) # Generator for the C include representing the generics.js -$(OBJROOT)/duktape/generics.js.inc: content/handlers/javascript/duktape/generics.js +$(OBJROOT)/duktape/generics.js.inc: content/handlers/javascript/duktape/generics.js $(TOOLROOT)/xxd $(Q)$(MKDIR) -p $(OBJROOT)/duktape $(VQ)echo " XXD: $<" - $(Q)xxd -i $< $@.tmp + $(Q)$(TOOLROOT)/xxd -i $< $@.tmp $(Q)sed -e 's/content_handlers_javascript_duktape_generics_js/generics_js/' $@.tmp > $@ +# Generator for the C include representing the polyfill.js +$(OBJROOT)/duktape/polyfill.js.inc: content/handlers/javascript/duktape/polyfill.js $(TOOLROOT)/xxd + $(Q)$(MKDIR) -p $(OBJROOT)/duktape + $(VQ)echo " XXD: $<" + $(Q)$(TOOLROOT)/xxd -i $< $@.tmp + $(Q)sed -e 's/content_handlers_javascript_duktape_polyfill_js/polyfill_js/' $@.tmp > $@ + # ensure genbind generates debugging files GBFLAGS+=-D |