Skip to content

Commit

Permalink
windows: Generate list of firmware in snek.cfg automatically
Browse files Browse the repository at this point in the history
This avoids having to keep the two lists in sync

Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed May 21, 2019
1 parent e7b5c9d commit aeed196
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion windows/Makefile
Expand Up @@ -43,7 +43,7 @@ $(WINDOWS_INSTALL): $(WINDOWS_FILES) snek.cfg
pynsist snek.cfg

snek.cfg: snek.cfg.in ../snek-install.defs ../snek.defs
$(SNEK_SED) snek.cfg.in > $@
for i in $(FIRMWARE); do echo " $$i"; done | sed '/@SNEK_FIRMWARE@/r /dev/stdin' snek.cfg.in | sed '/@SNEK_FIRMWARE/d' | $(SNEK_SED) > $@

snek.exe: $(SNEK_OBJ)
$(CC) $(CFLAGS) -o $@ $(SNEK_OBJ) $(LIBS)
Expand Down
7 changes: 1 addition & 6 deletions windows/snek.cfg.in
Expand Up @@ -19,12 +19,7 @@ packages=serial

files =../COPYING
../doc/snek.pdf
../snek-duino/snek-duino-@SNEK_VERSION@.hex
../snek-mega/snek-mega-@SNEK_VERSION@.hex
../snek-mega/Arduino-usbserial-atmega16u2-Mega2560-Rev3.hex
../metro-snek/metro-snek-@SNEK_VERSION@.uf2
../crickit-snek/crickit-snek-@SNEK_VERSION@.uf2
../itsybitsy-snek/itsybitsy-snek-@SNEK_VERSION@.hex
@SNEK_FIRMWARE@
../examples
snek.exe
altusmetrum.inf
Expand Down

0 comments on commit aeed196

Please sign in to comment.