Skip to content

Commit b4f1d17

Browse files
committed
Got documents to work in subdirs
1 parent 55f1872 commit b4f1d17

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

makefile

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,18 @@
1-
files = README.pdf Rplots_outpat.pdf Routputs_inpat_v4.txt README.docx thoughts-notes-appendix.pdf Routputs_inpat_v5.txt Routputs_inpat.txt
1+
files = Rplots_outpat.pdf Routputs_inpat_v4.txt Routputs_inpat_v5.txt Routputs_inpat.txt
22
files_unmentioned = Routputs_outpat.txt Rplots_inpat_v4.pdf Rplots_inpat.pdf
3+
34
.PHONY: all clean upload
4-
infiles_outpat = PATIENT.txt PAT_ORDERS_PROCEDURES.txt PAT_ENC_DX.txt PAT_PRBL_LIST.txt Pat_FlowSheet_PulseOx.txt
5-
infile_bsl = COVID_1_SLH.tab
65

76
all: $(files)
8-
9-
%.pdf: %.txt
10-
pandoc -o $@ $<
11-
12-
%.pdf: %.md
13-
pandoc -o $@ $<
14-
15-
%.docx: %.txt
16-
pandoc -o $@ $<
17-
18-
%.docx: %.md
19-
pandoc -o $@ $<
7+
$(MAKE) -C outputs
208

219
#### Analyses
2210

23-
Rplots_outpat.pdf: analysis_outpat.R $(infiles_outpat)
11+
Rplots_outpat.pdf: analysis_outpat.R
2412
Rscript $< > Routputs_outpat.txt
2513
mv -f Rplots.pdf Rplots_outpat.pdf
2614

27-
Routputs_inpat.txt: analysis_inpat.R $(infile_bsl)
15+
Routputs_inpat.txt: analysis_inpat.R # COVID_1....
2816
Rscript $< > $@
2917

3018
Routputs_inpat_v4.txt: bslmc_v4_DataSets_pipe.R # infiles_v4, sadly 15 of them

outputs/makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
files = README.pdf README.docx thoughts-notes-appendix.pdf
2+
3+
.PHONY: all
4+
5+
all: $(files)
6+
7+
#### Documents
8+
9+
%.pdf: ../%.md
10+
pandoc -o $@ $<
11+
12+
%.docx: ../%.md
13+
pandoc -o $@ $<
File renamed without changes.

0 commit comments

Comments
 (0)