@@ -343,6 +343,11 @@ $(GEN)/esp32_spi-flash.h: \
343343 $< spi_flash_source $(VERSION) $(REVISION) \
344344 esp32/optional/spi-flash/spi-flash.fs >$@
345345
346+ $(GEN ) /esp32_espnow.h : \
347+ tools/source_to_string.js esp32/optional/espnow/espnow.fs | $(GEN)
348+ $< espnow_source $(VERSION) $(REVISION) \
349+ esp32/optional/espnow/espnow.fs >$@
350+
346351$(GEN ) /esp32_serial-bluetooth.h : \
347352 tools/source_to_string.js \
348353 esp32/optional/serial-bluetooth/bterm.fs \
@@ -358,7 +363,8 @@ OPTIONAL_MODULES = \
358363 $(ESP32 ) /ESP32forth/interrupts.h \
359364 $(ESP32 ) /ESP32forth/rmt.h \
360365 $(ESP32 ) /ESP32forth/serial-bluetooth.h \
361- $(ESP32 ) /ESP32forth/spi-flash.h
366+ $(ESP32 ) /ESP32forth/spi-flash.h \
367+ $(ESP32 ) /ESP32forth/espnow.h
362368
363369add-optional : $(OPTIONAL_MODULES )
364370
@@ -702,6 +708,15 @@ $(ESP32)/ESP32forth/optional/spi-flash.h: \
702708 spi_flash=@$(GEN ) /esp32_spi-flash.h \
703709 >$@
704710
711+ $(ESP32 ) /ESP32forth/optional/espnow.h : \
712+ esp32/optional/espnow/espnow.h \
713+ $(GEN)/esp32_espnow.h | $(ESP32)/ESP32forth/optional
714+ cat esp32/optional/espnow/espnow.h | tools/replace.js \
715+ VERSION =$(VERSION ) \
716+ REVISION=$(REVISION ) \
717+ espnow=@$(GEN ) /esp32_espnow.h \
718+ >$@
719+
705720# ---- ESP32 ARDUINO BUILD AND FLASH ----
706721
707722ARDUINO_BUILDER ="/mnt/c/Program Files (x86)/Arduino/arduino-builder.exe"
@@ -805,7 +820,8 @@ $(ESP32)/ESP32forth.zip: \
805820 $(ESP32)/ESP32forth/optional/interrupts.h \
806821 $(ESP32)/ESP32forth/optional/rmt.h \
807822 $(ESP32)/ESP32forth/optional/serial-bluetooth.h \
808- $(ESP32)/ESP32forth/optional/spi-flash.h
823+ $(ESP32)/ESP32forth/optional/spi-flash.h \
824+ $(ESP32)/ESP32forth/optional/espnow.h
809825 cd $(ESP32) && rm -f ESP32forth.zip && zip -r ESP32forth.zip ESP32forth
810826
811827# ---- Publish to Archive ----
0 commit comments