diff options
author | Heikki Kallasjoki <fis@zem.fi> | 2018-12-13 13:13:02 +0000 |
---|---|---|
committer | Heikki Kallasjoki <fis@zem.fi> | 2018-12-13 13:13:02 +0000 |
commit | 59832931e0d26a2c82897a93daa400befc43f70c (patch) | |
tree | 735f4fd4cc8a6528fe78d0cbdfe60e6ba638c3ab /Makefile | |
parent | 44e499db4074e7e22d7f74a34a048fa0271aedf8 (diff) | |
download | nano-exporter-59832931e0d26a2c82897a93daa400befc43f70c.tar.gz nano-exporter-59832931e0d26a2c82897a93daa400befc43f70c.tar.xz nano-exporter-59832931e0d26a2c82897a93daa400befc43f70c.zip |
Save release tarball generation command to Makefile. v1.0.1
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile index 4245718..1480e16 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,15 @@ clean: $(RM) -r $(DEPDIR) $(MAKE) -C test clean +# release workflow + +TARBALL_COMMIT ?= HEAD +TARBALL_SUFFIX ?= $(shell git describe --always --tags --match 'v*' $(TARBALL_COMMIT)) + +.PHONY: tarball +tarball: + git archive --format=tar --prefix=nano-exporter-$(TARBALL_SUFFIX)/ $(TARBALL_COMMIT) | gzip -c -9 > nano-exporter-$(TARBALL_SUFFIX).tar.gz + # dependencies $(DEPDIR)/%.d: ; |