mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-12-01 11:03:07 +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)
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user