X-Git-Url: https://oss.titaniummirror.com/gitweb?p=git-utils.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=dd1d0ec384480e5d2e5dc3786a5b91d217e2136a;hp=0000000000000000000000000000000000000000;hb=315c7f23ab3f9f583c13920f063c88b4bdb2cd6a;hpb=31e5b27edfe737e8eed17523cc546f454d68498f 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