-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
32 lines (26 loc) · 801 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
SCRIPT = bin/ymlmd.pl
MD_FILES := \
includes/coding-paid.md \
includes/coding.md \
includes/other-paid.md \
includes/other.md
default: coding.md other.md
includes/%.md: data/%.yml Makefile $(SCRIPT)
$(SCRIPT) "$<" >"$@.tmp"
mv "$@.tmp" "$@"
coding.md: $(MD_FILES)
( echo "# Monospace Typefaces for Coding"; echo ; \
echo "## Freely Available" ; echo ; \
cat includes/coding.md ; echo ; \
echo "## Paid" ; echo ; \
cat includes/coding-paid.md ; echo ; ) >"$@.tmp"
mv "$@.tmp" "$@"
other.md: $(MD_FILES)
( echo "# Other Monospace Typefaces"; echo ; \
echo "## Freely Available" ; echo ; \
cat includes/other.md ; echo ; \
echo "## Paid" ; echo ; \
cat includes/other-paid.md ; echo ; ) >"$@.tmp"
mv "$@.tmp" "$@"
clean:
rm coding.md other.md $(MD_FILES) || true