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) version := $(shell git log -1 --abbrev=8 --pretty=git%h)
endif endif
prefix := /usr
datadir := $(prefix)/share
docdir := $(datadir)/doc/
name := spin-kickstarts
all: dist all: dist
install:
install *.ks custom l10n $(datadir)/$(name)
install AUTHORS COPYING README $(docdir)/$(name)
clean: clean:
rm -f spin-kickstarts-*.tar.gz rm -f $(name)-*.tar.gz
dist: 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: publish:
scp spin-kickstarts-$(version).tar.gz fedorahosted.org:spin-kickstarts scp $(name)-$(version).tar.gz fedorahosted.org:$(name)
dist-clean: dist-clean:
git clean -f -d git clean -f -d