diff --git a/Makefile b/Makefile index 8cae919..d404b1f 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ i386-linux-handwrite: planck.xxd chmod +x planck 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 cp others/planck.py planck diff --git a/others/planck.c b/others/planck.c index 86f4dd6..1ef7ae5 100644 --- a/others/planck.c +++ b/others/planck.c @@ -14,7 +14,8 @@ #include #define COPYRIGHT "Copyright (c) 2021 Koichi Nakamura " -#define RUNTIME_NAME COMPILER +#define STRINGIFY(s) #s +#define RUNTIME_NAME STRINGIFY(COMPILER) #define VERSION RUNTIME_NAME ":" COPYRIGHT