mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-11-29 02:13:09 +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:
parent
93e94db57a
commit
89d097db42
18
Makefile
18
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user