From: Hugo Villeneuve Date: Tue, 7 Dec 2021 03:58:38 +0000 (-0500) Subject: Améliorations du makefile pour installation X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=d4b8c5b31922010c22a3d0a12ecd1962a3b39478;p=musique%2Fhvguitartex.git Améliorations du makefile pour installation --- diff --git a/Makefile b/Makefile index 57a30ab..d1e70ba 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,15 @@ +PREFIX ?= /usr/local + conf: - cp --force guitartex.conf ${HOME}/.guitartexrc - cp --recursive --force .TeX ${HOME} + install -m 644 guitartex.conf ${HOME}/.guitartexrc install: - cp --force gtx2tex.pl /usr/local/bin/gtx2tex - cp --force guitartex.pl /usr/local/bin/guitartex - mkdir -p /usr/local/lib/guitartex - cp --recursive --force * /usr/local/lib/guitartex - chmod a+x /usr/local/bin/gtx2tex - chmod a+x /usr/local/bin/guitartex - + install -m 755 gtx2tex.pl $(PREFIX)/bin/gtx2tex + install -m 755 guitartex.pl $(PREFIX)/bin/guitartex + mkdir -p $(PREFIX)/lib/guitartex + cp --recursive --force * $(PREFIX)/lib/guitartex uninstall: - rm /usr/local/bin/guitartex /usr/local/bin/gtx2tex - rm -r /usr/local/lib/guitartex - + rm $(PREFIX)/bin/guitartex + rm $(PREFIX)/bin/gtx2tex + rm -r $(PREFIX)/lib/guitartex