diff --git a/Makefile b/Makefile index 064426f..fb73b69 100644 --- a/Makefile +++ b/Makefile @@ -33,12 +33,15 @@ VERSION_FILE = ${BUILD_DIR}/version.h LANG_TEMPLATE = ${I18N}/${PROJECT}-${VERSION}.pot default: DEFS += -DUSB_PRODUCT='"Original Prusa CW1"' -DUSB_PID=0x0008 -DSERIAL_COM_DEBUG +default: DEVICE = cw1 default: $(addprefix $(BUILD_DIR)/, ${PROJECT}-${LANG}-devel.hex) dist: DEFS += -DUSB_PRODUCT='"Original Prusa CW1"' -DUSB_PID=0x0008 +dist: DEVICE = cw1 dist: $(addprefix $(BUILD_DIR)/, ${PROJECT}-${LANG}-${VERSION}.hex) cw1s: DEFS += -DCW1S -DUSB_PRODUCT='"Original Prusa CW1S"' -DUSB_PID=0x000F +cw1s: DEVICE = cw1s cw1s: $(addprefix $(BUILD_DIR)/, ${PROJECT_CW1S}-${LANG}-${VERSION}.hex) .PHONY: clean distclean lang_extract default dist ${VERSION_FILE}.tmp doc @@ -55,7 +58,7 @@ $(BUILD_DIR)%/.: $(BUILD_DIR)/%.hex: ${BUILD_DIR}/%.elf ${OBJCOPY} -O ihex -R .eeprom $< $@.tmp - @echo "; device = cw1" > $@ + @echo "; device = ${DEVICE}" > $@ @echo >> $@ cat $@.tmp >> $@ rm $@.tmp