-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
67 lines (52 loc) · 1.22 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
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
# chart.csv
# reports/export -> export -> coa data -> export
#
# balance.csv
# reports/export -> financial -> balance sheet
# accounts with zero balancce
# detail -> total funds -> temporarily restricted -> check all
# export
#
# income.csv
# reports/export -> financial -> treasurer's report
# accounts with zero balances
# fund -> general fund
# export
#
# vendor.csv
# reports -> transaction -> general ledger -> account = accounts payable/vendor
# export
#
# journal.csv
# date posted
# export
#
FLAGS = --month $(shell date +%m)
default:
@echo "Nothing to make."
ministry:
report --ministry-report $(FLAGS)
unassigned:
report --unassigned-report $(FLAGS)
vendor:
report --vendor-report $(FLAGS)
ministry.pdf:
report --ministry-report --landscape $(FLAGS) | \
enscript -r -B -o - | \
ps2pdf - $@
unassigned.pdf:
report --unassigned-report $(FLAGS) | \
enscript -B -o - | \
ps2pdf - $@
vendor.pdf:
report --vendor-report $(FLAGS) | \
enscript -B -o - | \
ps2pdf - $@
.PHONY: ministry.pdf unassigned.pdf vendor.pdf
.PHONY: ministry unassigned vendor
clean:
$(RM) *.pyc *~
veryclean: clean
$(RM) ministry.pdf unassigned.pdf vendor.pdf
pylint:
pylint --disable=missing-docstring,duplicate-code *.py report