SUBDIRS = stm32 .PHONY : tar tar-% # To get ID from a tar archive just run: # zcat nonrec-make.tgz | git get-tar-commit-id tar : tar-HEAD tar-% : commit=$(subst tar-,,$@);\ tarname=z180-stamp-$$(git describe --tags $$commit).tgz;\ echo Archiving $$commit to $$tarname;\ git archive $$commit mk | gzip > $$tarname # vim: set ft=make :