Commit 2776585e authored by nimrod's avatar nimrod
Browse files

Add Makefile for zipping reciepts to send to my accountant.

parent 46991c3a
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
last_month != date +%Y-%m --date 'last month'
last_zip != ls *.zip | sort -r | head -1
new_files != find reciepts/ -type f -newer ${last_zip}

${last_month}.zip: ${new_files}
	zip $@ $^

.PHONY: clean
clean:
	rm *.zip