# This is free and unencumbered software released into the public # domain. To the extent possible under law, the author of this file # waives all copyright and related or neighboring rights to it. GIT ?= git git-describe = $(shell $(GIT) describe --tags --always $1) define git-archive $(GIT) archive --output '$1' $(if $2,--prefix '$2') '$(call git-describe,$3)' endef .git: $(error "This target must be run inside a git repository.")