Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
u1f992 committed Feb 7, 2024
1 parent 41d103c commit fb49ddb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ else
PIO = $(HOME)/.platformio/penv/bin/platformio
endif

VERSION = v2.0.0-alpha

.pio/build/pico/firmware.uf2: src/main.cpp src/jiangtun.h
$(PIO) run --environment pico

Expand All @@ -27,19 +29,19 @@ endif
dist:
mkdir dist

dist/jiangtun-pico.uf2: .pio/build/pico/firmware.uf2 dist
dist/jiangtun-$(VERSION)-pico.uf2: .pio/build/pico/firmware.uf2 dist
$(CP) $(call FIXPATH,$<) $(call FIXPATH,$@)

dist/jiangtun-dol-pico.uf2: .pio/build/dol-pico/firmware.uf2 dist
dist/jiangtun-$(VERSION)-dol-pico.uf2: .pio/build/dol-pico/firmware.uf2 dist
$(CP) $(call FIXPATH,$<) $(call FIXPATH,$@)

dist/jiangtun-xiao-rp2040.uf2: .pio/build/xiao-rp2040/firmware.uf2 dist
dist/jiangtun-$(VERSION)-xiao-rp2040.uf2: .pio/build/xiao-rp2040/firmware.uf2 dist
$(CP) $(call FIXPATH,$<) $(call FIXPATH,$@)

dist/jiangtun-dol-xiao-rp2040.uf2: .pio/build/dol-xiao-rp2040/firmware.uf2 dist
dist/jiangtun-$(VERSION)-dol-xiao-rp2040.uf2: .pio/build/dol-xiao-rp2040/firmware.uf2 dist
$(CP) $(call FIXPATH,$<) $(call FIXPATH,$@)

all: dist/jiangtun-pico.uf2 dist/jiangtun-dol-pico.uf2 dist/jiangtun-xiao-rp2040.uf2 dist/jiangtun-dol-xiao-rp2040.uf2
all: dist/jiangtun-$(VERSION)-pico.uf2 dist/jiangtun-$(VERSION)-dol-pico.uf2 dist/jiangtun-$(VERSION)-xiao-rp2040.uf2 dist/jiangtun-$(VERSION)-dol-xiao-rp2040.uf2

clean:
$(RM) $(call FIXPATH,dist/*)
Expand Down

0 comments on commit fb49ddb

Please sign in to comment.