Skip to content

Commit

Permalink
Makefile install: set install-script as prerequisite (#47)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* Makefile install: install-srcript -> install.sh

Co-authored-by: Guido Günther <[email protected]>

* Makefile install: drop phony for install-script

not necessary anymore

---------

Co-authored-by: Guido Günther <[email protected]>
  • Loading branch information
anoop142 and agx authored Nov 9, 2023
1 parent d97dcac commit 82fb49f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,16 @@ 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
${SED} "s#@LIB_NAME@#${LIB_NAME}#g" install.sh
${SED} "s#@SO_NAME@#${SO_NAME}#g" install.sh
chmod +x install.sh

install:
.PHONY: install
install: install.sh
./install.sh install

.PHONY: uninstall
Expand Down

0 comments on commit 82fb49f

Please sign in to comment.