From 5d48b7b38ff8a401d5c04800c38bd4e060449ab8 Mon Sep 17 00:00:00 2001 From: Nick Chan Date: Mon, 13 Feb 2023 14:16:29 +0800 Subject: [PATCH] move release name into makefile --- Makefile | 2 ++ src/optparse.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 4424d6b..e2ff0d4 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +NAME = The Beginning of the End + SRC = $(shell pwd) DEP = $(SRC)/dep_root STRIP = strip diff --git a/src/optparse.c b/src/optparse.c index 90eb760..baf2452 100644 --- a/src/optparse.c +++ b/src/optparse.c @@ -245,7 +245,9 @@ int optparse(int argc, char* argv[]) { } } if (checkrain_option_enabled(host_flags, host_option_palerain_version)) { +#ifndef __INTELLISENSE__ printf("palera1n version " PALERAIN_VERSION ": " BUILD_DATE "; " BUILD_WHOAMI ":" BUILD_TAG "/" BUILD_STYLE "\n"); +#endif return 0; }