branch: externals/transient commit f4790969fe9ed0084be537ed476e9292d1e92244 Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
make: Add stats target --- .gitignore | 1 + Makefile | 4 ++++ default.mk | 4 ++++ docs/Makefile | 5 +++++ 4 files changed, 14 insertions(+) diff --git a/.gitignore b/.gitignore index 668ffb9639..3578139fdf 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ /docs/*.info /docs/*.pdf /docs/dir +/docs/stats/ /docs/transient/ /lisp/*.elc /lisp/transient-autoloads.el diff --git a/Makefile b/Makefile index 7f5ab43734..db38d2cdd6 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ help: $(info make html - generate html manual file) $(info make html-dir - generate html manual directory) $(info make pdf - generate pdf manual) + $(info make stats - generate statistics) $(info make publish - publish snapshot manuals) $(info make release - publish release manuals) $(info make clean - remove most generated files) @@ -40,6 +41,9 @@ html-dir: pdf: @$(MAKE) -C docs pdf +stats: + @$(MAKE) -C docs stats + publish: @$(MAKE) -C docs publish diff --git a/default.mk b/default.mk index 1d4fd17636..6977ea0a27 100644 --- a/default.mk +++ b/default.mk @@ -1,3 +1,5 @@ +TOP := $(dir $(lastword $(MAKEFILE_LIST))) + PKG = transient ELS = $(PKG).el @@ -21,3 +23,5 @@ endif INSTALL_INFO ?= $(shell command -v ginstall-info || printf install-info) MAKEINFO ?= makeinfo MANUAL_HTML_ARGS ?= --css-ref /assets/page.css + +STATS_DIR ?= $(TOP)docs/stats diff --git a/docs/Makefile b/docs/Makefile index 86573aa253..ae2a4f5287 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -60,6 +60,11 @@ html-dir: $(PKG).texi @printf "Generating $@\n" @texi2pdf --clean $< > /dev/null +.PHONY: stats +stats: + @printf "Generating statistics\n" + @gitstats -c style=https://magit.vc/assets/stats.css -c max_authors=999 $(TOP) $(STATS_DIR) + DOMAIN ?= magit.vc PUBLISH_PATH ?= /manual/ RELEASE_PATH ?= /manual/$(VERSION)/