summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2024-11-05 19:05:36 -0500
committerJonathan Bradley <jcb@pikum.xyz>2024-11-05 19:05:36 -0500
commit06677d6aa1d477253e65015101d1185e74ee8054 (patch)
treedd39f42f4f6b88de34efe4f03a6219df4e72361f /Makefile
parentd65e59e328d36994e0271b369780244b62e8654e (diff)
pk.h: cleanup and include errors
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bfab0f5..681b36e 100644
--- a/Makefile
+++ b/Makefile
@@ -75,13 +75,15 @@ build: pkmem-types
build: pkmem
build: pkstr
build: pkev
+ echo "#ifndef PK_SINGLE_HEADER_FILE_H\n#define PK_SINGLE_HEADER_FILE_H" > pk.h
cat pk.h.in \
pkmacros.h \
pkmem-types.h \
pkmem.h \
pkstr.h \
pkev.h \
- > pk.h
+ >> pk.h
+ echo "#endif /* PK_SINGLE_HEADER_FILE_H */" >> pk.h
sed -i -r \
-e "s/@@PK_VERSION@@/$(VERSION)/g" \
-e "s/@@YEAR@@/`date -u +%Y`/g" \