From 8e5090f8eb892afd126fd422aa0a7c90f3c8e049 Mon Sep 17 00:00:00 2001
From: Jonathan Bernhard <jonathan.bernhard@yahoo.com>
Date: Tue, 3 Dec 2024 17:41:02 +0100
Subject: [PATCH] Fix LIKWID_VERSION and LIKWID_COMMIT macros in likwid.h not
 being set correctly during installation

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index a34d37234..bb108cb2b 100644
--- a/Makefile
+++ b/Makefile
@@ -617,7 +617,7 @@ install: install_daemon install_freq install_appdaemon install_container_helper
 	@mkdir -p $(PREFIX)/include
 	@chmod 755 $(PREFIX)/include
 	@install -m 644 $(SRC_DIR)/includes/likwid.h  $(PREFIX)/include/
-	@sed -i -e "s#<VERSION>#$(VERSION)#g" -e "s#<DATE>#$(DATE)#g" -e "s#<GITCOMMIT>#$(GITCOMMIT)#g" -e "s#<MINOR>#$(MINOR)#g" $(PREFIX)/include/likwid.h
+	@sed -i -e "s#<VERSION>#$(VERSION)#g" -e "s#<DATE>#$(DATE)#g" -e "s#<GITCOMMIT>#$(GITCOMMIT)#g" -e "s#<MINOR>#$(MINOR)#g" -e "s#VERSION.RELEASE.MINORVERSION#$(VERSION).$(RELEASE).$(MINOR)#g" -e "s#LIKWID_COMMIT GITCOMMIT#LIKWID_COMMIT \"$(GITCOMMIT)\"#g" $(PREFIX)/include/likwid.h
 	@install -m 644 $(SRC_DIR)/includes/likwid-marker.h  $(PREFIX)/include/
 	$(FORTRAN_INSTALL)
 	@echo "===> INSTALL groups to $(PREFIX)/share/likwid/perfgroups"