forked from medic/medic-bulk-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (27 loc) · 942 Bytes
/
Makefile
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
DOCS = docs/format-csv.md \
docs/import.md \
docs/export-mysql-query.md \
docs/extend-properties.md \
docs/BulkEditingCookbook.md
.PHONY: docs/BulkEditingCookbook.md
all: docs
docs: $(DOCS)
docs/format-csv.md: format-csv
(echo '```'; ./format-csv -h; echo '```') > docs/format-csv.md 2>&1
docs/import.md: import
(echo '```'; ./import; echo '```') > docs/import.md
docs/export-mysql-query.md: export-mysql-query
(echo '```'; ./export-mysql-query; echo '```') > \
docs/export-mysql-query.md 2>/dev/null
docs/extend-properties.md: extend-properties
(echo '```'; ./extend-properties -h; echo '```') > \
docs/extend-properties.md 2>&1
docs/BulkEditingCookbook.md:
./node_modules/.bin/doctoc --maxlevel 2 docs/BulkEditingCookbook.md
publish:
read -a confirm -p "Clean out working files and publish? (y/n) " && \
test "$$confirm" == "y" && \
git clean -fd && \
npm publish
cleandocs:
rm $(DOCS)