[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit 3d7d353 3/5: make: Update stats target
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit 3d7d353 3/5: make: Update stats target |
Date: |
Thu, 16 Dec 2021 13:57:39 -0500 (EST) |
branch: elpa/git-commit
commit 3d7d353ad546f47ce91103d5da46e847b00d3a19
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
make: Update stats target
---
default.mk | 7 ++++---
docs/Makefile | 6 +++---
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/default.mk b/default.mk
index b5abc1d..6faced9 100644
--- a/default.mk
+++ b/default.mk
@@ -19,8 +19,6 @@ lispdir ?= $(sharedir)/emacs/site-lisp/magit
infodir ?= $(sharedir)/info
docdir ?= $(sharedir)/doc/magit
-STATSDIR ?= $(TOP)docs/stats
-
CP ?= install -p -m 644
MKDIR ?= install -p -m 755 -d
RMDIR ?= rm -rf
@@ -34,6 +32,9 @@ INSTALL_INFO ?= $(shell command -v ginstall-info ||
printf install-info)
MAKEINFO ?= makeinfo
MANUAL_HTML_ARGS ?= --css-ref /assets/page.css
+GITSTATS_DIR ?= $(TOP)docs/stats
+GITSTATS_ARGS ?= -c style=https://magit.vc/assets/stats.css -c max_authors=999
+
BUILD_MAGIT_LIBGIT ?= true
## Files #############################################################
@@ -175,7 +176,7 @@ WITH_EDITOR_DIR ?= $(shell \
find -L $(ELPA_DIR) -maxdepth 1 -regex '.*/with-editor-[.0-9]*' 2> /dev/null
| \
sort | tail -n 1)
ifeq "$(WITH_EDITOR_DIR)" ""
- WITH_EDITOR_DIR = $(TOP)../with-editor
+ WITH_EDITOR_DIR = $(TOP)../with-editor/lisp
endif
MAGIT_SECTION_DIR ?= $(shell \
diff --git a/docs/Makefile b/docs/Makefile
index 00ce2cd..0306cf7 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -82,7 +82,7 @@ clean:
@$(RMDIR) $(EPUBFILES) $(EPUBTRASH)
clean-stats:
- @$(RMDIR) $(statsdir)
+ @$(RMDIR) $(GENSTATS_DIR)
## Release management ################################################
@@ -110,7 +110,7 @@ texi:
stats:
@printf "Generating statistics\n"
- @gitstats -c style=https://magit.vc/assets/stats.css -c max_authors=999
$(TOP) $(STATSDIR)
+ @gitstats $(GITSTATS_ARGS) $(TOP) $(GITSTATS_DIR)
authors: AUTHORS.md
@@ -139,7 +139,7 @@ space := $(empty) $(empty)
publish-stats: stats
@printf "Uploading statistics...\n"
- @aws s3 sync $(STATSDIR) $(S3_BUCKET)/stats/
+ @aws s3 sync $(GITSTATS_DIR) $(S3_BUCKET)/stats/
@printf "Uploaded to $(PUBLISH_URL)/stats/\n"
@printf "Generating CDN invalidation\n"
@aws cloudfront create-invalidation \