aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-06 14:59:43 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-06 14:59:43 +1300
commitd2ec1aa9748f2e65c7037d0c16d8eea9ebdd16ed (patch)
treed3960fa2eb2ec35207229931c8dfe5bbb5ff0195 /Makefile
parentMerge branch 'release/v3.1.0' (diff)
parentBump VERSION (diff)
downloadwatch-vcs-tags-d2ec1aa9748f2e65c7037d0c16d8eea9ebdd16ed.tar.gz
watch-vcs-tags-d2ec1aa9748f2e65c7037d0c16d8eea9ebdd16ed.zip
Merge branch 'release/v4.0.0'HEADv4.0.0master
* release/v4.0.0: Correct subcommands for tags generation function Remove unneeded semicolon Correct/adjust default behaviour with no args Refactor tag generation functions Refactor Makefile for more generality Add Makefile and manual page Use correct control structure for loop body exit Remove unused $self variable Refactor script some more
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 90bfa3b..8801108 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,20 @@
.POSIX:
.SUFFIXES:
-.PHONY: all install clean
+.SUFFIXES: .sh
+.PHONY: all install install-bin install-man clean
PREFIX = /usr/local
-all:
-install:
+ALL = watch-git-tags
+SH = /bin/sh
+.sh:
+ { printf '#!%s\n\n' $(SH) ; cat $< ; } > $@
+ chmod +x ./$@
+all: $(ALL)
+install: install-bin install-man
+install-bin:
mkdir -p -- $(PREFIX)/bin
cp -- watch-git-tags $(PREFIX)/bin
+install-man:
+ mkdir -p -- $(PREFIX)/share/man/man1
+ cp -- watch-git-tags.1 $(PREFIX)/share/man/man1
clean:
+ rm -f -- $(ALL)