Makefile: ensure we don't overwrite an existing tarball.
intrigeri
6 years ago
10 | 10 | rm -f metche.8 |
11 | 11 | |
12 | 12 | VERSION=$(shell head -n1 Changelog | awk '{print $$1}') |
13 | TARBALL=../metche-$(VERSION).tar.gz | |
13 | 14 | release: Changelog |
15 | ! [ -f $(TARBALL) ] | |
14 | 16 | git archive \ |
15 | 17 | --prefix=metche-$(VERSION)/ \ |
16 | --output=../metche-$(VERSION).tar.gz \ | |
18 | --output=$(TARBALL) \ | |
17 | 19 | master |
18 | 20 | |
19 | 21 | .PHONY: all doc clean distclean |