Skip to content

Commit b4fd066

Browse files
committed
make: Add stats target
1 parent 5b4b0f5 commit b4fd066

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
/docs/*.pdf
55
/docs/dir
66
/docs/forge/
7+
/docs/stats/
78
/lisp/forge-autoloads.el

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ help:
1414
$(info make html - generate html manual file)
1515
$(info make html-dir - generate html manual directory)
1616
$(info make pdf - generate pdf manual)
17+
$(info make stats - generate statistics)
1718
$(info make publish - publish snapshot manuals)
1819
$(info make release - publish release manuals)
1920
$(info make clean - remove most generated files)
@@ -40,6 +41,9 @@ html-dir:
4041
pdf:
4142
@$(MAKE) -C docs pdf
4243

44+
stats:
45+
@$(MAKE) -C docs stats
46+
4347
publish:
4448
@$(MAKE) -C docs publish
4549

default.mk

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
TOP := $(dir $(lastword $(MAKEFILE_LIST)))
2+
13
PKG = forge
24

35
ELS += $(PKG)-db.el
@@ -49,3 +51,5 @@ endif
4951
INSTALL_INFO ?= $(shell command -v ginstall-info || printf install-info)
5052
MAKEINFO ?= makeinfo
5153
MANUAL_HTML_ARGS ?= --css-ref /assets/page.css
54+
55+
STATS_DIR ?= $(TOP)docs/stats

docs/Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ html-dir: $(PKG).texi
6060
@printf "Generating $@\n"
6161
@texi2pdf --clean $< > /dev/null
6262

63+
.PHONY: stats
64+
stats:
65+
@printf "Generating statistics\n"
66+
@gitstats -c style=https://magit.vc/assets/stats.css -c max_authors=999 $(TOP) $(STATS_DIR)
67+
6368
DOMAIN ?= magit.vc
6469
PUBLISH_PATH ?= /manual/
6570
RELEASE_PATH ?= /manual/$(VERSION)/

0 commit comments

Comments
 (0)