From f5bd07c45c7a6e918324932a2113287f1282d803 Mon Sep 17 00:00:00 2001 From: Ben Blazak Date: Mon, 4 Jun 2012 00:09:15 -0700 Subject: [PATCH] added convenience target 'dist-hex' to makefile --- src/makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/makefile b/src/makefile index f120b12..bea17a9 100644 --- a/src/makefile +++ b/src/makefile @@ -122,6 +122,10 @@ clean: @echo --- cleaning --- cd .. ; git clean -dX # remove ignored files and directories +# availability: linux +dist-hex: clean all + mv firmware.hex 'ergodox-firmware--$(shell git branch -l | grep '*' | cut -c 3-)--$(shell date +'%Y%m%d_%H%M%S').hex' + # ----------------------------------------------------------------------------- .SECONDARY: