diff --git a/Makefile b/Makefile index 115a6b1..9839b7a 100644 --- a/Makefile +++ b/Makefile @@ -1,22 +1,20 @@ 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: PID=0x0004 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: PID=0x0004 -firmwares += build/MockBand.drums.hex +firmwares: build/MockBand.drums.hex build/MockBand.drums.hex: VID=0x1bad build/MockBand.drums.hex: PID=0x3110 -all: $(firmwares) - build/MockBand.%.hex: MockBand.ino mkdir -p build/cache rm -f build/build.options.json @@ -37,9 +35,9 @@ flash-%: build/MockBand.%.hex dist: build/MockBand.zip -build/MockBand.zip: $(firmwares) +build/MockBand.zip: firmwares rm -f $@ - zip -r $@ README.md $^ docs/ + zip -r $@ README.md build/*.hex docs/ clean: rm -rf build