-include ../config.mk include ../default.mk MAKEINFO ?= makeinfo INSTALL_INFO ?= $(shell \ hash ginstall-info 2> /dev/null\ && printf ginstall-info\ || printf install-info) DOC_LOAD_PATH ?= -L ../../dash -L ../../org/lisp -L ../../ox-texinfo+ .PHONY: texi install clean AUTHORS.md all: info # Because most users don't have the necessary tools we cannot # use "%.texi: %.org". Instead we have to hardcode each file # using a shared target. texi: $(TEXIPAGES) @printf "Generating texi files\n" @printf "WARNING: This creates whitespace errors in code blocks.\n" @printf "WARNING: Discard these whitespace errors before committing.\n" @printf "WARNING: Also see https://github.com/magit/magit/issues/1912.\n" @printf "Generating magit.texi\n" @$(EMACSBIN) -batch -Q $(DOC_LOAD_PATH) \ -l ox-texinfo+.el magit.org -f org-texinfo+export-to-texinfo @echo >> magit.texi @printf "Generating magit-popup.texi\n" @$(EMACSBIN) -batch -Q $(DOC_LOAD_PATH) \ -l ox-texinfo+.el magit-popup.org -f org-texinfo+export-to-texinfo @echo >> magit-popup.texi @printf "Generating with-editor.texi\n" @$(EMACSBIN) -batch -Q $(DOC_LOAD_PATH) \ -l ox-texinfo+.el with-editor.org -f org-texinfo+export-to-texinfo @echo >> with-editor.texi info: $(INFOPAGES) dir %.info: %.texi @printf "Generating $@\n" @$(MAKEINFO) $< -o $@ dir: magit.info magit-popup.info with-editor.info @printf "Generating dir\n" @echo $^ | xargs -n 1 $(INSTALL_INFO) --dir=$@ install: install-info install-docs install-docs: install-info @$(MKDIR) $(DESTDIR)$(docdir) $(CP) AUTHORS.md $(DESTDIR)$(docdir) install-info: info @$(MKDIR) $(DESTDIR)$(infodir) $(CP) $(INFOPAGES) $(DESTDIR)$(infodir) clean: @printf "Cleaning Documentation/*...\n" @$(RM) $(INFOPAGES) dir authors: AUTHORS.md AUTHORS.md: @printf "Generating AUTHORS.md..." @test -d $(TOP).git \ && (printf "$$AUTHORS_HEADER\n" > $@ \ && git log --pretty=format:'- %aN <%aE>' | sort -u >> $@ \ && printf "done\n" ; ) \ || printf "FAILED (non-fatal)\n" define AUTHORS_HEADER Authors ======= The following people have contributed to Magit, including the libraries `git-commit.el`, `magit-popup.el`, and `with-editor.el` which are distributed as separate Elpa packages. For statistics see http://magit.vc/stats/authors.html. Names below are sorted alphabetically. Author ------ - Marius Vollmer Maintainer ---------- - Jonas Bernoulli Developers ---------- - Kyle Meyer - Noam Postavsky Retired Maintainers and Developers ---------------------------------- - Nicolas Dudebout - Peter J. Weisberg - Pieter Praet - Phil Jackson - Rémi Vanicat - Yann Hodique Contributors ------------ endef export AUTHORS_HEADER