-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.demo
30 lines (22 loc) · 905 Bytes
/
Makefile.demo
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
# File: Makefile.demo
# Created at: Mon Jul 20 00:44:23 2020
# Produced by gnumaker: 0.0.0.9009 on R version 4.0.2 (2020-06-22)
# Before running make, please check file and edit if necessary
# .PHONY all target: run when 'make' is invoked without a target
.PHONY: all
all: report1.pdf report2.docx
# report1.pdf depends on report1.Rmd, linmod.Rout
report1.pdf: report1.Rmd linmod.Rout
# report2.docx depends on report2.Rmd, linmod.Rout
report2.docx: report2.Rmd linmod.Rout
# plots and analysis using 'linmod.R'
linmod.Rout: linmod.R read.Rout
# read.Rout depends on read.R, simple.csv
read.Rout: read.R simple.csv
# include GNU Makfile rules. Most recent version available at
# https://github.com/petebaker/r-makefile-definitions
include ~/lib/r-rules.mk
# remove all target, output and extraneous files
.PHONY: cleanall
cleanall:
rm -f *~ *.Rout *.RData *.docx *.pdf *.html *-syntax.R *.RData