generated from fedossa/treat
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (24 loc) · 800 Bytes
/
Makefile
File metadata and controls
37 lines (24 loc) · 800 Bytes
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
# If you are new to Makefiles: https://makefiletutorial.com
PAPER := output/paper.pdf
TARGETS := $(PAPER)
WRDS_DATA := data/pulled/wrds_aa.csv
GENERATED_DATA := data/generated/filtered_data.csv
RESULTS := output/results.pickle
.PHONY: all clean very-clean dist-clean
all: $(TARGETS)
clean:
rm -f $(TARGETS) $(RESULTS) $(GENERATED_DATA)
very-clean: clean
rm -f $(WRDS_DATA)
dist-clean: very-clean
rm -f secrets.env
$(WRDS_DATA): code/python/pull_wrds_data.py
python $<
$(GENERATED_DATA): code/python/prepare_data.py $(WRDS_DATA)
python $<
$(RESULTS): code/python/do_analysis.py $(GENERATED_DATA)
python $<
$(PAPER): doc/paper.qmd doc/references.bib $(RESULTS)
quarto render $< --quiet
mv doc/paper.pdf output
rm -f doc/paper.ttt doc/paper.fff