2013-10-18 20:10:14 +00:00
|
|
|
# Get a version name based off the nearest tag (include lightweight tags)
|
|
|
|
version := $(shell git describe --tags)
|
2013-06-29 18:44:27 +00:00
|
|
|
|
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 20:44:34 +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:44:34 +00:00
|
|
|
mkdir -p -m 755 $(DATADIR)/$(name)
|
|
|
|
install *.ks* -m 644 $(DATADIR)/$(name)
|
|
|
|
mkdir -p -m 755 $(DATADIR)/$(name)/custom
|
|
|
|
install -m 644 custom/* $(DATADIR)/$(name)/custom
|
|
|
|
mkdir -p -m 755 $(DATADIR)/$(name)/l10n
|
|
|
|
install -m 644 l10n/* $(DATADIR)/$(name)/l10n
|
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
|
|
|
|
2013-06-30 03:18:08 +00:00
|
|
|
dist: $(name)-$(version).tar.gz
|
|
|
|
|
|
|
|
$(name)-$(version).tar.gz:
|
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-07-03 03:17:39 +00:00
|
|
|
publish: $(name)-$(version).tar.gz
|
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
|