1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-11-25 16:43:08 +00:00

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.
This commit is contained in:
Bruno Wolff III 2013-06-29 14:37:50 -05:00
parent 93e94db57a
commit 89d097db42

View File

@ -5,16 +5,28 @@ 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 spin-kickstarts-*.tar.gz
rm -f $(name)-*.tar.gz
dist:
git archive --format=tar --prefix=spin-kickstarts-$(version)/ HEAD | gzip > spin-kickstarts-$(version).tar.gz
git archive --format=tar --prefix=$(name)-$(version)/ HEAD | gzip > $(name)-$(version).tar.gz
publish:
scp spin-kickstarts-$(version).tar.gz fedorahosted.org:spin-kickstarts
scp $(name)-$(version).tar.gz fedorahosted.org:$(name)
dist-clean:
git clean -f -d