Migrate from node-webkit to NW.js.
[pwl6.git] / rules / git.mk
1 # This is free and unencumbered software released into the public
2 # domain. To the extent possible under law, the author of this file
3 # waives all copyright and related or neighboring rights to it.
4
5 GIT ?= git
6 git-describe = $(shell $(GIT) describe --tags --always $1)
7
8 define git-archive
9 $(GIT) archive --output '$1' $(if $2,--prefix '$2') '$(call git-describe,$3)'
10 endef
11
12 .git:
13 $(error "This target must be run inside a git repository.")