diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-06 14:59:43 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-06 14:59:43 +1300 |
commit | d2ec1aa9748f2e65c7037d0c16d8eea9ebdd16ed (patch) | |
tree | d3960fa2eb2ec35207229931c8dfe5bbb5ff0195 /Makefile | |
parent | Merge branch 'release/v3.1.0' (diff) | |
parent | Bump VERSION (diff) | |
download | watch-vcs-tags-d2ec1aa9748f2e65c7037d0c16d8eea9ebdd16ed.tar.gz watch-vcs-tags-d2ec1aa9748f2e65c7037d0c16d8eea9ebdd16ed.zip |
* 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-- | Makefile | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -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) |