From 6b9ac739e5338dfb3e8729c9aea0b29d2d3db01a Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Sun, 7 Apr 2024 14:58:20 +0200 Subject: Add an include guard to the generated program_info.h --- src/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index a16283e..e0eab19 100644 --- a/src/Makefile +++ b/src/Makefile @@ -9,6 +9,7 @@ $(PROGRAM_NAME): $(SOURCES) $(HEADERS) program_info.h $(CC) $(CFLAGS) -o $(PROGRAM_NAME) $(SOURCES) program_info.h: + echo '#pragma once' echo '#include ' echo "const std::string PROGRAM_NAME_STR {\"$(PROGRAM_NAME)\"};" >program_info.h echo "const std::string PROGRAM_VERSION_STR {\"$(PROGRAM_VERSION)\"};" >>program_info.h -- cgit v1.2.3