-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (24 loc) · 957 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
.PHONEY: present clean all rpackages publish unpublish clean exampledoc
presentationname=ReproducibleResearchIsRSE
pubdoc=./docs/index.html
figures=$(wildcard figs/*.png) $(wildcard figs/*.jpg)
SUBDIRS=example
all: $(presentationname).html
exampledoc:
$(MAKE) -C example
$(presentationname).html: $(presentationname).Rmd
Rscript -e "rmarkdown::render('$<')"
$(presentationname).Rmd: $(figures) exampledoc
subdirs: $(SUBDIRS)
present: $(presentationname).html
chromium-browser $< &
clean:
rm -f $(presentationname).html
rpackages:
Rscript installRpackages.R
pdf:
@echo "To convert to pdf, push the repository to github,"
@echo "wait for Travis to build the presentation and then go to"
@echo "http://idinteraction.cs.manchester.ac.uk/ResearchITClubTalk/ReproducibleResearchIsRSE.html?print-pdf#/"
@echo "using Chrome(ium), and then print to pdf"
@echo "For full instructions, see https://github.com/hakimel/reveal.js#pdf-export"