-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
99 lines (68 loc) · 1.99 KB
/
Makefile
File metadata and controls
99 lines (68 loc) · 1.99 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Life_tables
current: target
-include target.mk
-include makestuff/perl.def
######################################################################
# Content
vim_session:
bash -ic "vmt"
##################################################################
## Aim to get rid of the weird pl / ssv stuff upstream and start with
## dataframe-like input files (a column for f and p, or else m and two ps
## merge some other stream (with the m ⇒ f) that is SOMEWHERE (maybe here)
## Content
Sources += $(wildcard *.pl *.ssv *.h *.R *.t *.fmt *.pars)
sourcelist: .
ls -t *.ssv > $@
# Life table calculations
## User provides an .ssv file, which is made into a .tsv life table
## To finish the pipeline, we later need a .h file which makes the header.
Ignore += *.tsv
%.tsv: %.ssv lt.pl
$(PUSH)
# Make un-filled version
Ignore += *.empty.tsv
%.empty.tsv: %.tsv ltempty.pl
$(PUSH)
%.skeleton.tsv: %.tsv ltskeleton.pl
$(PUSH)
%.tmp: %.h lt.t
cat $^ > $@
# This may not work if you try to make empty version first.
%.empty.tmp: %.tmp
/bin/cp -f $< $@
%.skeleton.tmp: %.tmp
/bin/cp -f $< $@
%.before.h: before.h
/bin/ln -fs $< $@
%.before.Rout: table.Rout %.Rout before.R
$(run-R)
%.after.h: after.h
/bin/ln -fs $< $@
%.after.Rout: table.Rout %.Rout after.R
$(run-R)
%.ssv: %.Rout ;
## Why did I have to make pre.tsv manually? It should chain 2026 Jan 29 (Thu)
## pre.tab.tex: pre.tsv
Ignore += *.tab.tex
%.tab.tex: %.tsv %.tmp tab.fmt dmu.pl
$(PUSH)
params.tex standalone.tex: %.tex: params.tsv %.tmp tab.fmt dmu.pl
perl -f dmu.pl $^ > $@
######################################################################
### Makestuff
Sources += Makefile
## Sources += content.mk
## include content.mk
Ignore += makestuff
msrepo = https://github.com/dushoff
Makefile: makestuff/Makefile
makestuff/Makefile:
git clone $(msrepo)/makestuff
ls $@
-include makestuff/os.mk
## -include makestuff/wrapR.mk
-include makestuff/texj.mk
-include makestuff/git.mk
-include makestuff/visual.mk
-include makestuff/projdir.mk