aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Sucan <jan@jansucan.com>2024-04-07 14:58:20 +0200
committerJán Sučan <jan@jansucan.com>2024-04-07 15:01:38 +0200
commit6b9ac739e5338dfb3e8729c9aea0b29d2d3db01a (patch)
treee018961c5724d7c54e92e14f5edfc691ae15ed8b /src
parent92fb599f0ae99c429316700ee8eef92d7365c28c (diff)
Add an include guard to the generated program_info.h
Diffstat (limited to 'src')
-rw-r--r--src/Makefile1
1 files changed, 1 insertions, 0 deletions
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 <string>'
echo "const std::string PROGRAM_NAME_STR {\"$(PROGRAM_NAME)\"};" >program_info.h
echo "const std::string PROGRAM_VERSION_STR {\"$(PROGRAM_VERSION)\"};" >>program_info.h