From 82fb49fda9cf044eea250d0bac17b2bb33a661fc Mon Sep 17 00:00:00 2001 From: Anoop S <40671157+anoop142@users.noreply.github.com> Date: Thu, 9 Nov 2023 20:57:05 +0530 Subject: [PATCH] Makefile install: set install-script as prerequisite (#47) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Makefile install: set install-script as prerequisite generate a new install.sh when install is triggered. * Makefile install: use non phony install.sh.in Co-authored-by: Guido Günther * Makefile install: install-srcript -> install.sh Co-authored-by: Guido Günther * Makefile install: drop phony for install-script not necessary anymore --------- Co-authored-by: Guido Günther --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 051dbb6..7e2e589 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,7 @@ temp-pc: ${SED} "s#/include/libgovarnam##g" govarnam.pc ${SED} "s#/lib\$$##g" govarnam.pc -install-script: +install.sh: install.sh.in cp install.sh.in install.sh ${SED} "s#@INSTALL_PREFIX@#${INSTALL_PREFIX}#g" install.sh ${SED} "s#@VERSION@#${VERSION}#g" install.sh @@ -49,7 +49,8 @@ install-script: ${SED} "s#@SO_NAME@#${SO_NAME}#g" install.sh chmod +x install.sh -install: +.PHONY: install +install: install.sh ./install.sh install .PHONY: uninstall