about summary refs log tree commit diff stats
path: root/templates/c/makefile
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-02 13:44:56 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-02 13:44:56 +0200
commit10948ed35a04d6cbe05819acf9903e5e7395375b (patch)
treee5b57b6ef3aec62686d087969d9ed441209f7751 /templates/c/makefile
parentfix(templates.nix): Adjust to the new `init` script (diff)
downloadflake-templates-10948ed35a04d6cbe05819acf9903e5e7395375b.tar.gz
flake-templates-10948ed35a04d6cbe05819acf9903e5e7395375b.zip
feat(treewide): Also remove hard-coded values in the `templates/` dir
Diffstat (limited to 'templates/c/makefile')
-rw-r--r--templates/c/makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/c/makefile b/templates/c/makefile
index e5577c4..63ca24c 100644
--- a/templates/c/makefile
+++ b/templates/c/makefile
@@ -2,7 +2,10 @@ PREFIX    := /usr/local
 BINPREFIX := $(DESTDIR)$(PREFIX)/bin
 MANPREFIX := $(DESTDIR)$(PREFIX)/share/man/man1
 
-BIN_NAME := TODO
+BIN_NAME := %INIT_APPLICATION_NAME
+# This version is set automatically on `cog bump --auto`;
+BIN_VERSION := "v%INIT_APPLICATION_VERSION"  # GUIDING VERSION STRING
+
 # The trailing slash is important
 BUILD_DIR := ./target/
 BIN_PATH := $(BUILD_DIR)$(BIN_NAME)