Skip to content

Commit 288fb49

Browse files
committed
bittboy and retrofw makefiles update, readme update
1 parent 6d4c058 commit 288fb49

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ libwebp-2.dll
1111
zlib1.dll
1212
*.o
1313
*.d
14-
opkg/
1514
yatka.opk
15+
yatka.zip

Makefile.bittboy

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
.PHONY: all clean
1+
.PHONY: all clean zip
22

33
BIN_BASE = /opt/miyoo/bin/
44
PROJECT = yatka
5+
ZIPNAME = $(PROJECT).zip
56
SRC = 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

1415
all: $(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

2935
clean:
30-
rm -rf $(PROJECT) $(OBJ) $(DEP) src/*.d.*
36+
rm -rf $(PROJECT) $(OBJ) $(DEP) src/*.d.* $(ZIPNAME)
3137

3238
-include $(DEP)

Makefile.retrofw

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
BIN_BASE = /opt/retrofw/bin/
44
PROJECT = yatka
55
OPK_NAME = yatka.opk
6-
OPK_DIR = opkg
76
SRC = 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

2625
src/%.o: src/%.c
@@ -34,6 +33,6 @@ src/%.d: src/%.c
3433
rm -f $@.$$$$
3534

3635
clean:
37-
rm -rf $(PROJECT) $(OBJ) $(DEP) src/*.d.* $(OPK_DIR)
36+
rm -rf $(PROJECT) $(OBJ) $(DEP) src/*.d.* $(OPK_NAME)
3837

3938
-include $(DEP)

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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?)

0 commit comments

Comments
 (0)