forked from brainhackorg/brainhack_jupyter_book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (44 loc) · 2.21 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
neuroviewcontributors=affiliation_and_consent_for_the_brainhack_neuroview_preprint_raw.tsv
contributors:
cp data/${neuroviewcontributors} data/contributors.tsv
cp data/${neuroviewcontributors} data/preprint_contributors.tsv
brainhack_book/preprint_contributors.md : data/preprint_contributors.tsv brainhack_book/preprint_contributors_descriptions.md scripts/mdtable.py
python scripts/mdtable.py \
-f data/preprint_contributors.tsv \
-d brainhack_book/preprint_contributors_descriptions.md \
-t brainhack_book/preprint_contributors.md \
--contributor;
brainhack_book/contributors.md : data/contributors.tsv brainhack_book/contributors_descriptions.md scripts/mdtable.py data/contributors.tsv
python scripts/mdtable.py \
-f data/contributors.tsv \
-d brainhack_book/contributors_descriptions.md \
-t brainhack_book/contributors.md \
--contributor;
brainhack_book/preprint_acknowledgments.md : data/preprint_acknowledgments.csv brainhack_book/preprint_acknowledgments_descriptions.md scripts/mdtable.py
python scripts/mdtable.py \
-f data/preprint_acknowledgments.csv \
-d brainhack_book/preprint_acknowledgments_descriptions.md \
-t brainhack_book/preprint_acknowledgments.md;
brainhack_book/acknowledgments.md : data/acknowledgments.csv brainhack_book/acknowledgments_descriptions.md scripts/mdtable.py
python scripts/mdtable.py \
-f data/acknowledgments.csv \
-d brainhack_book/acknowledgments_descriptions.md \
-t brainhack_book/acknowledgments.md;
preprint: brainhack_book/preprint_acknowledgments.md brainhack_book/preprint_contributors.md
bookpage: brainhack_book/contributors.md brainhack_book/acknowledgments.md
manuscript : data/affiliations_curated.tsv data/coreteam_ranking.tsv
ifeq (,$(wildcard data/${neuroviewcontributors}))
osf -p ${osfid} fetch ${neuroviewcontributors} data/${neuroviewcontributors}
endif
python scripts/neuroview_author_ranking.py
bash scripts/neuroview_affiliations_organizer.sh
book :
jupyter-book build brainhack_book
tests :
python brainhack_book/tests/traverse_pages.py
clean :
rm -r brainhack_book/_build/
rm brainhack_book/preprint_acknowledgments.md
rm brainhack_book/preprint_contributors.md
rm brainhack_book/contributors.md
rm brainhack_book/acknowledgments.md