1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-11-16 21:53:07 +00:00
fedora-kickstarts/Makefile

37 lines
901 B
Makefile
Raw Permalink Normal View History

# Get a version name based off the nearest tag (include lightweight tags)
version := $(shell git describe --tags)
2013-06-29 19:45:41 +00:00
DESTDIR := /usr
2013-06-29 19:45:41 +00:00
DATADIR := $(DESTDIR)/share
DOCDIR := $(DATADIR)/doc
name := spin-kickstarts
2013-06-29 17:42:13 +00:00
all: dist
install:
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
mkdir -p -m 755 $(DATADIR)/$(name)/snippets
install -m 644 snippets/* $(DATADIR)/$(name)/snippets
clean:
rm -f $(name)-*.tar.gz
dist: $(name)-$(version).tar.gz
$(name)-$(version).tar.gz:
git archive --format=tar --prefix=$(name)-$(version)/ HEAD | gzip > $(name)-$(version).tar.gz
publish: $(name)-$(version).tar.gz
scp $(name)-$(version).tar.gz fedorahosted.org:$(name)
2013-06-29 18:53:08 +00:00
dist-clean:
git clean -f -d