summaryrefslogtreecommitdiffstats
path: root/doc/Makefile
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2018-04-30 22:35:54 -0400
committerGraham Christensen <graham@grahamc.com>2018-04-30 22:37:58 -0400
commitab1648bf0d13afc19bdf7e3d092a3f7ce15a4de1 (patch)
treeb32ed86cc9db3763580a26abdbbb94052bf1e9e7 /doc/Makefile
parent8cb0252b1e50a5236793e0fbf39b39510725ccf0 (diff)
nixpkgs doc: add format Make target
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 952ef4bfcbb9..8a4612e95f19 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -1,12 +1,17 @@
MD_TARGETS=$(addsuffix .xml, $(basename $(wildcard ./*.md ./**/*.md)))
.PHONY: all
-all: validate out/html/index.html out/epub/manual.epub
+all: validate format out/html/index.html out/epub/manual.epub
.PHONY: debug
debug:
nix-shell --run "xmloscopy --docbook5 ./manual.xml ./manual-full.xml"
+.PHONY: format
+format:
+ find . -iname '*.xml' -type f -print0 | xargs -0 -I{} -n1 \
+ xmlformat --config-file "$$XMLFORMAT_CONFIG" -i {}
+
.PHONY: clean
clean:
rm -f ${MD_TARGETS} .version manual-full.xml
lue='committer'>committer
path: root/l10n/fr.json
blob: 452c0cbd8216c23d7c633fc40f1db6ada5508ded (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126