1 2 3 4 5 6
DISTDIR ?= $(shell portageq distdir) TAG ?= HEAD VERSION ?= $(shell git describe --tags $(TAG)) dist: git archive $(TAG) | xz > $(DISTDIR)/python-gentoo-patches-$(VERSION).tar.xz