2013-06-29 18:44:27 +00:00
|
|
|
# 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 19:45:41 +00:00
|
|
|
DESTDIR := /usr
|
2013-06-29 19:37:50 +00:00
|
|
|
|
2013-06-29 19:45:41 +00:00
|
|
|
DATADIR := $(DESTDIR)/share
|
2013-06-29 19:37:50 +00:00
|
|
|
|
2013-06-29 19:45:41 +00:00
|
|
|
DOCDIR := $(DATADIR)/doc/
|
2013-06-29 19:37:50 +00:00
|
|
|
|
|
|
|
name := spin-kickstarts
|
|
|
|
|
2013-06-29 17:42:13 +00:00
|
|
|
all: dist
|
|
|
|
|
2013-06-29 19:37:50 +00:00
|
|
|
install:
|
2013-06-29 20:17:50 +00:00
|
|
|
install *.ks* $(DATADIR)/$(name)
|
|
|
|
install custom/* $(DATADIR)/$(name)/custom
|
|
|
|
install l10n/* $(DATADIR)/$(name)/l10n
|
2013-06-29 20:30:55 +00:00
|
|
|
install AUTHORS COPYING README $(DOCDIR)/$(name)-$(version)
|
2013-06-29 19:37:50 +00:00
|
|
|
|
2013-06-29 17:22:55 +00:00
|
|
|
clean:
|
2013-06-29 19:37:50 +00:00
|
|
|
rm -f $(name)-*.tar.gz
|
2013-06-29 17:22:55 +00:00
|
|
|
|
|
|
|
dist:
|
2013-06-29 19:37:50 +00:00
|
|
|
git archive --format=tar --prefix=$(name)-$(version)/ HEAD | gzip > $(name)-$(version).tar.gz
|
2013-06-29 17:47:10 +00:00
|
|
|
|
2013-06-29 18:53:08 +00:00
|
|
|
publish:
|
2013-06-29 19:37:50 +00:00
|
|
|
scp $(name)-$(version).tar.gz fedorahosted.org:$(name)
|
2013-06-29 18:53:08 +00:00
|
|
|
|
2013-06-29 17:47:10 +00:00
|
|
|
dist-clean:
|
|
|
|
git clean -f -d
|