forked from progit/progit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (34 loc) · 944 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
39
40
41
# TODO: research wildcard targets
# TODO: DRY
en: figures docs
@for file in `ls ../en/*/*.markdown`; do \
filename=`basename -s .markdown $$file`; \
target=./_docs/$$filename; \
mkdir -p $$target; \
cp $$file $$target/body.markdown; \
echo $$filename > $$target/_id; \
done;
de: figures docs
@for file in `ls ../de/*/*.markdown`; do \
filename=`basename -s .markdown $$file`; \
target=./_docs/$$filename; \
mkdir -p $$target; \
cp $$file $$target/body.markdown; \
echo $$filename > $$target/_id; \
done;
by: figures docs
@for file in `ls ../by/*/*.markdown`; do \
filename=`basename -s .markdown $$file`; \
target=./_docs/$$filename; \
mkdir -p $$target; \
cp $$file $$target/body.markdown; \
echo $$filename > $$target/_id; \
done;
# add your target language
figures:
mkdir -p _attachments/figures/
cp ../figures/* _attachments/figures/
docs:
mkdir -p _docs
clean:
git clean -fdx