+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