More idiomatic (to me) Makefile
Mockband / build (push) Failing after 11s Details

This commit is contained in:
Neale Pickett 2024-01-05 09:29:16 -07:00
parent 9f0c0711a8
commit 63bd067250
1 changed files with 6 additions and 8 deletions

View File

@ -1,22 +1,20 @@
DEVICE=/dev/ttyACM0 DEVICE=/dev/ttyACM0
all: all: firmwares
firmwares += build/MockBand.guitar-wammy.hex firmwares: build/MockBand.guitar-wammy.hex
build/MockBand.guitar-wammy.hex: VID=0x1bad build/MockBand.guitar-wammy.hex: VID=0x1bad
build/MockBand.guitar-wammy.hex: PID=0x0004 build/MockBand.guitar-wammy.hex: PID=0x0004
build/MockBand.guitar-wammy.hex: FLAGS=-DWAMMY build/MockBand.guitar-wammy.hex: FLAGS=-DWAMMY
firmwares += build/MockBand.guitar.hex firmwares: build/MockBand.guitar.hex
build/MockBand.guitar.hex: VID=0x1bad build/MockBand.guitar.hex: VID=0x1bad
build/MockBand.guitar.hex: PID=0x0004 build/MockBand.guitar.hex: PID=0x0004
firmwares += build/MockBand.drums.hex firmwares: build/MockBand.drums.hex
build/MockBand.drums.hex: VID=0x1bad build/MockBand.drums.hex: VID=0x1bad
build/MockBand.drums.hex: PID=0x3110 build/MockBand.drums.hex: PID=0x3110
all: $(firmwares)
build/MockBand.%.hex: MockBand.ino build/MockBand.%.hex: MockBand.ino
mkdir -p build/cache mkdir -p build/cache
rm -f build/build.options.json rm -f build/build.options.json
@ -37,9 +35,9 @@ flash-%: build/MockBand.%.hex
dist: build/MockBand.zip dist: build/MockBand.zip
build/MockBand.zip: $(firmwares) build/MockBand.zip: firmwares
rm -f $@ rm -f $@
zip -r $@ README.md $^ docs/ zip -r $@ README.md build/*.hex docs/
clean: clean:
rm -rf build rm -rf build