Documentation: make it easier to maintain enumerated documents
Instead of starting an enumeration of documents with a DOC = doc1 followed by DOC += doc2, DOC += doc3, ..., empty it with "DOC =" at the beginning and consistently add them with "DOC += ...". Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Jan 27, 2014 at 09:04 UTC
43cc5ce9eaa96a4aa93e089a38e0ee1dc732df5c
1 file changed
+6
-3
Documentation/Makefile
+6
-3
@@ -2,6 +2,9 @@
2
MAN1_TXT =
3
MAN5_TXT =
4
MAN7_TXT =
5
+TECH_DOCS =
6
+ARTICLES =
7
+SP_ARTICLES =
8
9
MAN1_TXT += $(filter-out \
10
$(addsuffix .txt, $(ARTICLES) $(SP_ARTICLES)), \
@@ -37,12 +40,12 @@ MAN_HTML = $(patsubst %.txt,%.html,$(MAN_TXT))
40
OBSOLETE_HTML = git-remote-helpers.html
41
DOC_HTML = $(MAN_HTML) $(OBSOLETE_HTML)
42
40
-ARTICLES = howto-index
43
+ARTICLES += howto-index
44
ARTICLES += everyday
45
ARTICLES += git-tools
46
ARTICLES += git-bisect-lk2009
47
# with their own formatting rules.
45
-SP_ARTICLES = user-manual
48
+SP_ARTICLES += user-manual
49
SP_ARTICLES += howto/new-command
50
SP_ARTICLES += howto/revert-branch-rebase
51
SP_ARTICLES += howto/using-merge-subtree
@@ -60,7 +63,7 @@ SP_ARTICLES += howto/maintain-git
63
API_DOCS = $(patsubst %.txt,%,$(filter-out technical/api-index-skel.txt technical/api-index.txt, $(wildcard technical/api-*.txt)))
64
SP_ARTICLES += $(API_DOCS)
65
63
-TECH_DOCS = technical/http-protocol
66
+TECH_DOCS += technical/http-protocol
67
TECH_DOCS += technical/index-format
68
TECH_DOCS += technical/pack-format
69
TECH_DOCS += technical/pack-heuristics