fedora-kickstarts/Makefile

18 lines
419 B
Makefile
Raw Normal View History

# Get the version name first by seeing if HEAD is tagged
version := $(shell git tag --points-at HEAD)
# And if it wasn't use a git hash
ifeq ($(version),)
version := $(shell git log -1 --abbrev=8 --pretty=git%h)
endif
2013-06-29 17:42:13 +00:00
all: dist
clean:
2013-06-29 17:42:13 +00:00
rm -f spin-kickstarts-*.tar.gz
dist:
git archive --format=tar --prefix=spin-kickstarts-$(version)/ HEAD | gzip > spin-kickstarts.tar-$(version).gz
dist-clean:
git clean -f -d