blob: 2d97c584d397ef14f9594bbc438b318ded2136bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# 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
DESTDIR := /usr
DATADIR := $(DESTDIR)/share
DOCDIR := $(DATADIR)/doc/
name := spin-kickstarts
all: dist
install:
install *{.ks,.ks.in} $(DATADIR)/$(name)
install custom/*{.ks,.ks.in} $(DATADIR)/$(name)/custom
install l10n/*{.ks,.ks.in} $(DATADIR)/$(name)/l10n
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
|