.POSIX: PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man DATE = 2021-06-19 VERSION = 0.2.0 NAME = git-permalink MAILING_LIST = public-inbox TRANSLATIONS = pt fr eo .SUFFIXES: .SUFFIXES: .in .in: sed -e 's/@VERSION@/$(VERSION)/g' -e 's/@DATE@/$(DATE)/g' < $< > $@ manpages.en.in = \ doc/git-permalink.en.1.in \ manpages.in = $(manpages.en.in) \ doc/git-permalink.pt.1.in \ doc/git-permalink.fr.1.in \ doc/git-permalink.eo.1.in manpages = $(manpages.in:.in=) all: src/git-permalink.sh $(manpages) check: all sh tests/cli-opts.sh sh tests/install-uninstall.sh sh tests/remotes.sh dev-check: check sh aux/assert-shellcheck.sh sh aux/workflow/assert-todos.sh sh aux/workflow/assert-changelog.sh $(NAME) $(NAME) sh aux/workflow/assert-readme.sh $(NAME) $(MAILING_LIST) sh aux/workflow/l10n.sh -l '$(TRANSLATIONS)' $(manpages.en.in) sh aux/workflow/assert-manpages.sh $(NAME) $(MAILING_LIST) install: all mkdir -p $(DESTDIR)$(PREFIX)/bin cp src/git-permalink.sh $(DESTDIR)$(PREFIX)/bin/$(NAME) chmod +x $(DESTDIR)$(PREFIX)/bin/$(NAME) sh aux/workflow/manpages.sh -ip $(DESTDIR)$(PREFIX) $(manpages) uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/$(NAME) sh aux/workflow/manpages.sh -up $(DESTDIR)$(PREFIX) $(manpages) clean: rm -rf public/ src/git-permalink.sh $(manpages) dist: sh aux/workflow/dist.sh $(DATE) $(VERSION) $(NAME) $(NAME) $(MAILING_LIST) public: README.md TODOs.md CHANGELOG.md $(manpages) sh aux/workflow/public.sh $(NAME) $(NAME) $(MAILING_LIST) public sh aux/workflow/manpages.sh -Ho public $(manpages)