From d4b8c5b31922010c22a3d0a12ecd1962a3b39478 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Mon, 6 Dec 2021 22:58:38 -0500 Subject: [PATCH] =?utf8?q?Am=C3=A9liorations=20du=20makefile=20pour=20inst?= =?utf8?q?allation?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Makefile | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) 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 -- 2.20.1