1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-11-22 15:33:07 +00:00
fedora-kickstarts/Makefile
Bruno Wolff III 89d097db42 Add an install target to the make file
The fedora package uses make install, and it is easier to support that
here rather than in the spec file.
2013-06-29 14:37:50 -05:00

33 lines
662 B
Makefile

# 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
prefix := /usr
datadir := $(prefix)/share
docdir := $(datadir)/doc/
name := spin-kickstarts
all: dist
install:
install *.ks custom l10n $(datadir)/$(name)
install AUTHORS COPYING README $(docdir)/$(name)
clean:
rm -f $(name)-*.tar.gz
dist:
git archive --format=tar --prefix=$(name)-$(version)/ HEAD | gzip > $(name)-$(version).tar.gz
publish:
scp $(name)-$(version).tar.gz fedorahosted.org:$(name)
dist-clean:
git clean -f -d