.POSIX: PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man DATE = 2021-06-25 VERSION = 0.2.2 NAME = git-permalink MAILING_LIST = public-inbox TRANSLATIONS = pt fr eo .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 $(manpages) check: all sh tests/cli-opts.sh sh tests/install-uninstall.sh sh tests/remotes.sh dev-check: check public 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/assert-manpages.sh $(NAME) $(MAILING_LIST) install: all mkdir -p $(DESTDIR)$(PREFIX)/bin cp src/git-permalink $(DESTDIR)$(PREFIX)/bin/$(NAME) chmod +x $(DESTDIR)$(PREFIX)/bin/$(NAME) sh aux/workflow/manpages.sh -ip $(DESTDIR)$(MANPREFIX) $(manpages) uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/$(NAME) sh aux/workflow/manpages.sh -up $(DESTDIR)$(MANPREFIX) $(manpages) clean: rm -rf public/ src/git-permalink $(manpages) dist: sh aux/workflow/dist.sh $(DATE) $(VERSION) $(NAME) $(NAME) $(MAILING_LIST) l10n-gen: sh aux/workflow/l10n.sh -l '$(TRANSLATIONS)' $(manpages.en.in) public: l10n-gen all README.md TODOs.md CHANGELOG.md sh aux/workflow/public.sh $(NAME) $(NAME) $(MAILING_LIST) public sh aux/workflow/manpages.sh -Ho public $(manpages) spellcheck: public sh aux/workflow/assert-spelling.sh -l '$(TRANSLATIONS) en'