From: R. Steve McKown Date: Wed, 16 Mar 2016 23:23:17 +0000 (-0600) Subject: Add Makefile to install and uninstall git utils X-Git-Url: https://oss.titaniummirror.com/gitweb?p=git-utils.git;a=commitdiff_plain Add Makefile to install and uninstall git utils --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..dd1d0ec --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +# Install and uninstall git utilities and man pages + +install: progs man1 + +uninstall: unprogs unman1 + +progs: + cp $$(ls git-* | grep -v '\.[0-9]') /usr/local/bin + +man1: + mkdir -p /usr/local/man/$@ + cp $$(ls git-*.1) /usr/local/man/$@ + +unprogs: + for f in $$(ls git-* | grep -v '\.[0-9]'); do \ + rm /usr/local/bin/$$f; \ + done || exit 0 + +unman1: + for f in $$(ls git-*.1); do \ + rm /usr/local/man/man1/$$f; \ + done || exit 0 + +.PHONY: all install progs man1