-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
executable file
·39 lines (31 loc) · 1.11 KB
/
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
38
39
#!/usr/bin/env make
#
# Run tests like this:
#
# make BEANMEAT=/path/to/root/of/downloaded/files
# TODO(blais): Port to use Johnny.
# ameritrade/thinkorswim_csv.py
# tastyworks/tastyworks_csv.py
# ibkr/ibkr_xls.py
# ibkr/ibkr_flex_reports_csv.py
IMPORTERS = \
ameritrade/thinkorswim_forex.py \
oanda/oanda_csv.py \
oanda/oanda_pdf.py \
vanguard/vanguard_csv.py \
vanguard/vanguard_ofx.py \
vanguard/vanguard_pdf.py \
fidelity/fidelity_pdf.py \
lendingclub/lendingclub_pdf.py \
alerus/alerus_csv.py
test: $(IMPORTERS:.py=.test)
$(IMPORTERS:.py=.test) : %.test : beanbuff/%.py
python3 $< test $(BEANMEAT)/$(basename $@)
chains:
python3 -m johnny.base.consolidate $(HOME) --inactive
buff:
FLASK_ENV=development FLASK_APP=beanbuff.scripts.buff flask run
tobean:
@python3 -m beanbuff.data.tobean $(HOME)/tobean.json $(L) $(HOME)/tasty*1887*.csv | tee $(HOME)/x1887.beancount
@python3 -m beanbuff.data.tobean $(HOME)/tobean.json $(L) $(HOME)/tasty*2003*.csv | tee $(HOME)/x2003.beancount
@python3 -m beanbuff.data.tobean $(HOME)/tobean.json $(L) $(HOME)/*Statement.csv | tee $(HOME)/x9627.beancount