aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoryzrh <yzrh@noema.org>2020-12-30 15:54:00 +0000
committeryzrh <yzrh@noema.org>2020-12-30 22:12:33 +0000
commitcb2376a82f1f556f23c47d435cd60af2abfc0138 (patch)
treeb19529823e9314d8db88ea09d64d22461c355336 /src
parent74a79ac0236e90ebf0520b08448643d3ba55a1ed (diff)
downloadsnake-sdl-cb2376a82f1f556f23c47d435cd60af2abfc0138.tar.gz
snake-sdl-cb2376a82f1f556f23c47d435cd60af2abfc0138.tar.zst
Rename binary.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile18
-rw-r--r--src/snake-sdl.c (renamed from src/main.c)0
-rw-r--r--src/version.h2
3 files changed, 10 insertions, 10 deletions
diff --git a/src/Makefile b/src/Makefile
index 37533bd..f867d21 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0
-src = main.c collision.c game.c input.c renderer.c
+src = snake-sdl.c collision.c game.c input.c renderer.c
inc = extern.h game.h input.h renderer.h screen.h version.h
.ifdef GPIO
@@ -31,20 +31,20 @@ CFLAGS += -I/usr/local/include
LDFLAGS += -L/usr/local/lib
all: ${obj} ${inc}
- ${CC} ${LDFLAGS} -o snake ${obj}
+ ${CC} ${LDFLAGS} -o snake-sdl ${obj}
clean:
- rm -f snake ${obj}
+ rm -f snake-sdl ${obj}
install:
install -d ${PREFIX}/bin
- install -d ${PREFIX}/share/snake
- install snake ${PREFIX}/bin
- install -m644 ../contrib/font.ttf ${PREFIX}/share/snake
- install -m644 ../contrib/music.flac ${PREFIX}/share/snake
+ install -d ${PREFIX}/share/snake-sdl
+ install snake-sdl ${PREFIX}/bin
+ install -m644 ../contrib/font.ttf ${PREFIX}/share/snake-sdl
+ install -m644 ../contrib/music.flac ${PREFIX}/share/snake-sdl
deinstall:
- rm -f ${PREFIX}/bin/snake
- rm -rf ${PREFIX}/share/snake
+ rm -f ${PREFIX}/bin/snake-sdl
+ rm -rf ${PREFIX}/share/snake-sdl
.PHONY: all clean install deinstall
diff --git a/src/main.c b/src/snake-sdl.c
index 48b8fc8..48b8fc8 100644
--- a/src/main.c
+++ b/src/snake-sdl.c
diff --git a/src/version.h b/src/version.h
index cd17685..874129a 100644
--- a/src/version.h
+++ b/src/version.h
@@ -7,4 +7,4 @@
#define VERSION "0"
#define RELEASE "6"
#define PATCH "2"
-#define EXTRA "_4"
+#define EXTRA "_5"