-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
19 lines (16 loc) · 1.29 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
WIKIFOLDER=WikiSourceCode
all : $(WIKIFOLDER)/BT549_trajectory_analysis.md $(WIKIFOLDER)/RPE_trajectory_analysis.md
$(WIKIFOLDER)/BT549_trajectory_analysis.md : $(WIKIFOLDER)/BT549_trajectory_analysis.Rmd #Data/BT549_trajectory_analysis/*
@echo -e '\n# Building markdown file ####################################\n'
R -e 'rmarkdown::render("$<", rmarkdown::md_document(variant="markdown_github", toc=TRUE, toc_depth=1))'
@echo -e '\n# Replacing image paths #####################################\n'
sed -i -e 's+!\[\](+/+g' $@
@echo -e '\n# Copying markdown file to clipboard ########################\n'
cat $@ | xclip -selection clipboard
$(WIKIFOLDER)/RPE_trajectory_analysis.md : $(WIKIFOLDER)/RPE_trajectory_analysis.Rmd #Data/RPE_trajectory_analysis/*
@echo -e '\n# Building markdown file ####################################\n'
R -e 'rmarkdown::render("$<", rmarkdown::md_document(variant="gfm", toc=TRUE, toc_depth=1))'
@echo -e '\n# Replacing image paths #####################################\n'
sed -i -e 's+!\[\](+/+g' $@
@echo -e '\n# Copying markdown file to clipboard ########################\n'
cat $@ | xclip -selection clipboard