tools

various tools
git clone git://deadbeef.fr/tools.git
Log | Files | Refs | README | LICENSE

commit cc54ec066501f953f780788e945066009c2c8260
parent 17c3065ecfa59bee483911aa7569852c57bda17b
Author: Morel BĂ©renger <berenger.morel@neutralite.org>
Date:   Wed, 26 Feb 2020 09:32:20 +0100

added install/uninstall targets

Diffstat:
MMakefile | 18++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,7 +1,7 @@ -CC ?= cc -CXX ?= c++ +CC ?= cc +CXX ?= c++ +PREFIX ?= "/usr/local" -.PHONY: all all: manpages lmerge.1 lmerge %.1: %.1.md @@ -15,6 +15,16 @@ lmerge: lmerge.o manpages: lmerge.1 -.PHONY: clean clean: rm -f lmerge lmerge.1 *.o + +install: all + mkdir -p ${DESTDIR}${PREFIX}/bin/ ${DESTDIR}${PREFIX}/share/man/man1/ + install -m 755 lmerge ${DESTDIR}${PREFIX}/bin/ + install -m 644 lmerge.1 ${DESTDIR}${PREFIX}/share/man/man1/ + +uninstall: + rm ${DESTDIR}${PREFIX}/bin/lmerge + rm ${DESTDIR}${PREFIX}/share/man/man1/lmerge.1 + +.PHONY: all clean install uninstall