2 .PHONY: all split test tests release buildrules doc
12 cd snippets; ../omkbuild.py --split=../Makefile.rules
20 VERSION:=$(shell git describe|sed -e 's/^v//')
21 export VERSION # Export for doc/
22 RELEASE_DIR := omk-$(VERSION)
23 release: tag-check doc buildrules
24 -rm -rf $(RELEASE_DIR)
25 mkdir -p $(RELEASE_DIR)
26 cp -a rules $(RELEASE_DIR)
27 for i in $(RELEASE_DIR)/rules/*; do cp leaf-makefile/Makefile $$i; done
28 mkdir -p $(RELEASE_DIR)/doc
29 cp -a doc/omk-manual.txt doc/omk-manual.html doc/omk-manual.pdf $(RELEASE_DIR)/doc
30 cp COPYING $(RELEASE_DIR)
31 tar czf $(RELEASE_DIR).tar.gz $(RELEASE_DIR)
33 gpg -sba $(RELEASE_DIR).tar.gz
36 @test -n "$(VERSION)" || (echo "To create a release, please tag the repository with the tag 'vX.Y...'"; exit 1)