minor fix

This commit is contained in:
Koichi Nakamura 2021-01-11 14:03:25 +09:00
parent 29737b6c16
commit 8a5311f2e3
2 changed files with 3 additions and 2 deletions

View file

@ -8,7 +8,7 @@ i386-linux-handwrite: planck.xxd
chmod +x planck chmod +x planck
c: others/planck.c c: others/planck.c
gcc -Wall -O2 $< -o planck -DCOMPILER="\"`gcc --version | head -n1`\"" gcc -Wall -O2 $< -o planck -DCOMPILER="$(shell gcc --version | head -n1)"
python: others/planck.py python: others/planck.py
cp others/planck.py planck cp others/planck.py planck

View file

@ -14,7 +14,8 @@
#include <unistd.h> #include <unistd.h>
#define COPYRIGHT "Copyright (c) 2021 Koichi Nakamura <koichi@idein.jp>" #define COPYRIGHT "Copyright (c) 2021 Koichi Nakamura <koichi@idein.jp>"
#define RUNTIME_NAME COMPILER #define STRINGIFY(s) #s
#define RUNTIME_NAME STRINGIFY(COMPILER)
#define VERSION RUNTIME_NAME ":" COPYRIGHT #define VERSION RUNTIME_NAME ":" COPYRIGHT