File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,5 @@ libwebp-2.dll
1111zlib1.dll
1212* .o
1313* .d
14- opkg /
1514yatka.opk
15+ yatka.zip
Original file line number Diff line number Diff line change 1- .PHONY: all clean
1+ .PHONY: all clean zip
22
33BIN_BASE = /opt/miyoo/bin/
44PROJECT = yatka
5+ ZIPNAME = $(PROJECT).zip
56SRC = src/main.c src/data_persistence.c src/video.c src/sound.c \
67 src/state_gameover.c src/state_settings.c src/randomizer.c \
78 src/state_mainmenu.c src/skin.c
@@ -13,6 +14,11 @@ CC = arm-linux-gcc
1314
1415all: $(PROJECT)
1516
17+ zip: $(ZIPNAME)
18+
19+ $(ZIPNAME): $(PROJECT) skins sfx music icon.png yatka.png README.md LICENSE.md
20+ zip -r $(ZIPNAME) $^
21+
1622$(PROJECT): $(OBJ)
1723 $(CC) -o $(PROJECT) $(OBJ) $(LDFLAGS)
1824
@@ -27,6 +33,6 @@ src/%.d: src/%.c
2733 rm -f $@.$$$$
2834
2935clean:
30- rm -rf $(PROJECT) $(OBJ) $(DEP) src/*.d.*
36+ rm -rf $(PROJECT) $(OBJ) $(DEP) src/*.d.* $(ZIPNAME)
3137
3238-include $(DEP)
Original file line number Diff line number Diff line change 33BIN_BASE = /opt/retrofw/bin/
44PROJECT = yatka
55OPK_NAME = yatka.opk
6- OPK_DIR = opkg
76SRC = src/main.c src/data_persistence.c src/video.c src/sound.c \
87 src/state_gameover.c src/state_settings.c src/randomizer.c \
98 src/state_mainmenu.c src/skin.c
@@ -20,7 +19,7 @@ opk: $(OPK_NAME)
2019$(PROJECT): $(OBJ)
2120 $(CC) -o $(PROJECT) $(OBJ) $(LDFLAGS)
2221
23- $(OPK_NAME): $(PROJECT) skins sfx music icon.png README.md yatka.retrofw.desktop
22+ $(OPK_NAME): $(PROJECT) skins sfx music icon.png README.md LICENSE.md yatka.retrofw.desktop
2423 mksquashfs $^ $@ -noappend -no-xattrs
2524
2625src/%.o: src/%.c
@@ -34,6 +33,6 @@ src/%.d: src/%.c
3433 rm -f $@.$$$$
3534
3635clean:
37- rm -rf $(PROJECT) $(OBJ) $(DEP) src/*.d.* $(OPK_DIR )
36+ rm -rf $(PROJECT) $(OBJ) $(DEP) src/*.d.* $(OPK_NAME )
3837
3938-include $(DEP)
Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ I do not cover the topic in detail because there are many better sources on that
7777## ideas / plans
7878- [ v0.9] ports for other platforms
7979- [ v0.9] better joystick support
80- - [ v0.9] brick overlapping fix when smooth animation enabled
8180- line clear animation (TGM?)
8281- new KiCAD skin with no tetromino stats (I got bored with them)
8382- some kind of system promoting sponsoring the project (sponsor-defined wishes shown during gameplay?)
You can’t perform that action at this time.
0 commit comments