Skip to content

Commit

Permalink
Makefile install: set install-script as prerequisite
Browse files Browse the repository at this point in the history
generate a new install.sh when install is triggered.
  • Loading branch information
anoop142 committed Nov 5, 2023
1 parent c98f431 commit d4c9795
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ temp-pc:
${SED} "s#/include/libgovarnam##g" govarnam.pc
${SED} "s#/lib\$$##g" govarnam.pc

.PHONY: install-script
install-script:
cp install.sh.in install.sh
${SED} "s#@INSTALL_PREFIX@#${INSTALL_PREFIX}#g" install.sh
${SED} "s#@VERSION@#${VERSION}#g" install.sh
${SED} "s#@LIB_NAME@#${LIB_NAME}#g" install.sh
chmod +x install.sh

install:
.PHONY: install
install: install-script
./install.sh install

.PHONY: cli
Expand Down

0 comments on commit d4c9795

Please sign in to comment.