diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 39 |
1 files changed, 24 insertions, 15 deletions
@@ -7,11 +7,23 @@ NAME = git-permalink MAILING_LIST = public-inbox TRANSLATIONS = pt fr eo -all: git-permalink +.SUFFIXES: +.SUFFIXES: .in -git-permalink: src/git-permalink.sh.in - $(do_subst) < $? > $@ - chmod +x $@ +.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 @@ -23,28 +35,25 @@ dev-check: check 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/manpages.sh '$(TRANSLATIONS)' --update + sh aux/workflow/l10n.sh -l '$(TRANSLATIONS)' $(manpages.en.in) sh aux/workflow/assert-manpages.sh $(NAME) $(MAILING_LIST) -do_subst = sed \ - -e 's:[@]VERSION[@]:$(VERSION):g' \ - -e 's:[@]DATE[@]:$(DATE):g' - install: all mkdir -p $(DESTDIR)$(PREFIX)/bin - cp git-permalink $(DESTDIR)$(PREFIX)/bin/$(NAME) - sh aux/workflow/manpages.sh '$(TRANSLATIONS)' --install '$(DESTDIR)$(MANPREFIX)' -- $(do_subst) + 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 '$(TRANSLATIONS)' --uninstall '$(DESTDIR)$(MANPREFIX)' + sh aux/workflow/manpages.sh -up $(DESTDIR)$(PREFIX) $(manpages) clean: - rm -rf public/ git-permalink + 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 +public: README.md TODOs.md CHANGELOG.md $(manpages) sh aux/workflow/public.sh $(NAME) $(NAME) $(MAILING_LIST) public - sh aux/workflow/manpages.sh '$(TRANSLATIONS)' --html '' -- $(do_subst) + sh aux/workflow/manpages.sh -Ho public $(manpages) |