Skip to content

Instantly share code, notes, and snippets.

Created September 9, 2013 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/6503068 to your computer and use it in GitHub Desktop.
Save anonymous/6503068 to your computer and use it in GitHub Desktop.
# quick income statement for specified (single-word) period
INCOMESTATEMENTACCTS=^income ^expenses ^draw
INCOMESTATEMENTOPTS=--cost --effective --depth 1 #--flat --drop 1
income-statement-%:
@printf "\nincome statement for $*:\n"
$(HLEDGER) balance $(INCOMESTATEMENTACCTS) --period '$*' $(INCOMESTATEMENTOPTS)
# quick monthly income statements for this year
income-statements:
@for m in $(MONTHS); do \
make income-statement-$(YEAR)-$$m; \
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment