Compare commits

...

8 Commits

Author SHA1 Message Date
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
Bruno Wolff III
93e94db57a Fix typo in tar ball name 2013-06-29 13:55:02 -05:00
Bruno Wolff III
cb29cc9c18 Add a make publish function 2013-06-29 13:53:08 -05:00
Bruno Wolff III
3d2542b16d Fix pushing tags instruction 2013-06-29 13:49:01 -05:00
2 changed files with 21 additions and 4 deletions

View File

@@ -5,13 +5,30 @@ ifeq ($(version),)
version := $(shell git log -1 --abbrev=8 --pretty=git%h) version := $(shell git log -1 --abbrev=8 --pretty=git%h)
endif endif
DESTDIR := /usr
DATADIR := $(DESTDIR)/share
DOCDIR := $(DATADIR)/doc/
name := spin-kickstarts
all: dist all: dist
install:
install *.ks* $(DATADIR)/$(name)
install custom/* $(DATADIR)/$(name)/custom
install l10n/* $(DATADIR)/$(name)/l10n
install AUTHORS COPYING README $(DOCDIR)/$(name)-$(version)
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.tar-$(version).gz git archive --format=tar --prefix=$(name)-$(version)/ HEAD | gzip > $(name)-$(version).tar.gz
publish:
scp $(name)-$(version).tar.gz fedorahosted.org:$(name)
dist-clean: dist-clean:
git clean -f -d git clean -f -d

4
README
View File

@@ -15,9 +15,9 @@ cd spin-kickstarts
git checkout BRANCHNAME git checkout BRANCHNAME
# No tag has been added yet tag HEAD with # No tag has been added yet tag HEAD with
git tag VERSION git tag VERSION
git push tag VERSION git push --tags
make make
# Publish the released tar ball # Publish the released tar ball
scp spin-kickstarts-*.tar.gz fedorahosted.org:spin-kickstarts make publish
# Clean up the generated files: # Clean up the generated files:
make clean make clean