Compare commits

..

7 Commits

Author SHA1 Message Date
Bruno Wolff III
247595b762 Don't install stuff that ends in the doc directory 2013-06-29 15:59:10 -05:00
Bruno Wolff III
8311504e19 Make directories if needed and use specific permissions 2013-06-29 15:44:34 -05:00
Bruno Wolff III
5149abf0f9 The doc directory is versioned 2013-06-29 15:30:55 -05:00
Bruno Wolff III
15a9a14dff Missing wildcard instances causes a problem 2013-06-29 15:17:50 -05:00
Bruno Wolff III
629a71433c Fix install target
Installing a mix of directories and files on the same install
command doesn't work.
2013-06-29 14:59:42 -05:00
Bruno Wolff III
e2a8980bee Use DESTDIR instead of prefix 2013-06-29 14:45:41 -05:00
Bruno Wolff III
89d097db42 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.
2013-06-29 14:37:50 -05:00

View File

@@ -5,16 +5,32 @@ ifeq ($(version),)
version := $(shell git log -1 --abbrev=8 --pretty=git%h)
endif
DESTDIR := /usr
DATADIR := $(DESTDIR)/share
DOCDIR := $(DATADIR)/doc
name := spin-kickstarts
all: dist
install:
mkdir -p -m 755 $(DATADIR)/$(name)
install *.ks* -m 644 $(DATADIR)/$(name)
mkdir -p -m 755 $(DATADIR)/$(name)/custom
install -m 644 custom/* $(DATADIR)/$(name)/custom
mkdir -p -m 755 $(DATADIR)/$(name)/l10n
install -m 644 l10n/* $(DATADIR)/$(name)/l10n
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