;examples: csv: Makefile cleanup
This commit is contained in:
parent
78e088d982
commit
fc6282898b
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
YEAR:=$(shell date +%Y)
|
YEAR:=$(shell date +%Y)
|
||||||
JOURNAL=$(YEAR).journal
|
JOURNAL=$(YEAR).journal
|
||||||
HLEDGER=hledger
|
|
||||||
RG=rg -IN --sort=path
|
RG=rg -IN --sort=path
|
||||||
|
|
||||||
help: # list make targets
|
help: # list make targets
|
||||||
@ -51,13 +51,14 @@ CSVS=\
|
|||||||
# stripe.csv \
|
# stripe.csv \
|
||||||
# stripeexpress.csv \
|
# stripeexpress.csv \
|
||||||
|
|
||||||
# 2. How to make these CSV files (what download file to copy them from).
|
# 2. How to make these CSV files / where to move them from.
|
||||||
wf-checking.csv: $(DOWNLOADDIR)/Checking1.csv ; mv $< $@
|
wf-checking.csv: $(DOWNLOADDIR)/Checking1.csv; mv $< $@
|
||||||
wf-savings.csv: $(DOWNLOADDIR)/Savings2.csv ; mv $< $@
|
wf-savings.csv: $(DOWNLOADDIR)/Savings2.csv ; mv $< $@
|
||||||
paypal.csv: $(DOWNLOADDIR)/Download.csv ; mv $< $@
|
paypal.csv: $(DOWNLOADDIR)/Download.csv ; mv $< $@
|
||||||
vanguard.csv: $(DOWNLOADDIR)/ofxdownload.csv ; mv $< $@
|
# paypal.csv: PHONY; paypaljson | paypaljson2csv > $@
|
||||||
#stripe.csv: $(DOWNLOADDIR)/Itemized_balance_change_from_activity_USD_*.csv ; mv $< $@
|
vanguard.csv: $(DOWNLOADDIR)/ofxdownload.csv; mv $< $@
|
||||||
#stripeexpress.csv: $(DOWNLOADDIR)/StripeExpressActivity_*.csv ; mv $< $@
|
#stripe.csv: $(DOWNLOADDIR)/Itemized_balance_change_from_activity_USD_*.csv; mv $< $@
|
||||||
|
#stripeexpress.csv: $(DOWNLOADDIR)/StripeExpressActivity_*.csv; mv $< $@
|
||||||
|
|
||||||
# 3. Marking them as intermediate files (https://www.gnu.org/software/make/manual/html_node/Chained-Rules.html).
|
# 3. Marking them as intermediate files (https://www.gnu.org/software/make/manual/html_node/Chained-Rules.html).
|
||||||
.INTERMEDIATE: \
|
.INTERMEDIATE: \
|
||||||
@ -70,9 +71,6 @@ vanguard.csv: $(DOWNLOADDIR)/ofxdownload.csv
|
|||||||
|
|
||||||
csv: $(CSVS) # move any downloaded CSVs to the standard filenames above
|
csv: $(CSVS) # move any downloaded CSVs to the standard filenames above
|
||||||
|
|
||||||
# paypal.csv: PHONY # download paypal CSV from API
|
|
||||||
# paypaljson | paypaljson2csv > $@
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# ** IMPORT
|
# ** IMPORT
|
||||||
|
|
||||||
@ -123,4 +121,4 @@ prices-dry: PHONY # download and show today's prices, without saving
|
|||||||
# ** REPORTS
|
# ** REPORTS
|
||||||
|
|
||||||
bs: # simplified balance sheet
|
bs: # simplified balance sheet
|
||||||
$(HLEDGER) bs -2 -V --infer-market-prices --layout=bare
|
hledger bs -2 -V --infer-market-prices --layout=bare
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user