papirus-folders/Makefile

37 lines
983 B
Makefile
Raw Normal View History

2017-09-06 16:44:55 -04:00
PREFIX ?= /usr
PROGNAME := papirus-folders
all:
install:
mkdir -p $(DESTDIR)$(PREFIX)/bin
install -m 755 $(PROGNAME) $(DESTDIR)$(PREFIX)/bin
mkdir -p $(DESTDIR)$(PREFIX)/share/bash-completion/completions
2018-03-09 11:43:23 -05:00
install -m 644 completion/$(PROGNAME) \
$(DESTDIR)$(PREFIX)/share/bash-completion/completions
mkdir -p $(DESTDIR)$(PREFIX)/share/zsh/vendor-completions
2018-03-09 11:43:23 -05:00
install -m 644 completion/_$(PROGNAME) \
$(DESTDIR)$(PREFIX)/share/zsh/vendor-completions
2017-09-06 16:44:55 -04:00
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/$(PROGNAME)
rm -f $(DESTDIR)$(PREFIX)/share/bash-completion/completions/$(PROGNAME)
rm -f $(DESTDIR)$(PREFIX)/share/zsh/vendor-completions/_$(PROGNAME)
2017-09-06 16:44:55 -04:00
_get_version:
ifndef TAG
$(error TAG is not defined. Pass via "make release TAG=v0.1.2")
endif
2017-11-07 07:58:59 -05:00
release: _get_version
2017-09-06 16:44:55 -04:00
git tag -f $(TAG)
2017-11-07 07:58:59 -05:00
git push origin
2017-09-06 16:44:55 -04:00
git push origin --tags
undo_release: _get_version
-git tag -d $(TAG)
-git push --delete origin $(TAG)
.PHONY: all install uninstall _get_version release undo_release