From 8a5311f2e39da70bbf607a5fdd1897f8789197ee Mon Sep 17 00:00:00 2001 From: Koichi Nakamura Date: Mon, 11 Jan 2021 14:03:25 +0900 Subject: [PATCH] minor fix --- Makefile | 2 +- others/planck.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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