From 89d097db42303d6d68cb2cf640f7cb15aded62a9 Mon Sep 17 00:00:00 2001 From: Bruno Wolff III Date: Sat, 29 Jun 2013 14:37:50 -0500 Subject: [PATCH] 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. --- Makefile | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8762c35..a6b9c67 100644 --- a/Makefile +++ b/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