X-Git-Url: http://rtime.felk.cvut.cz/gitweb/omk.git/blobdiff_plain/193530d76eaf9ff33da55631c0b82e3acc2c4f52..75a9abff74dfbdd3103e115c19f4a5f0cc9cb0af:/Makefile diff --git a/Makefile b/Makefile index f1084e7..8723c86 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,37 @@ -.PHONY: all split +.PHONY: all split test tests release buildrules doc -all: - ./omkbuild.py --all +all: buildrules + +buildrules: + $(MAKE) -C snippets $@ split: - cd snippets; ../omkbuild.py --split=../Makefile.rules \ No newline at end of file + $(MAKE) -C snippets $@ RULES_TO_SPLIT=../Makefile.rules + +test tests: + $(MAKE) -C tests + +doc: + $(MAKE) -C doc + +VERSION:=$(shell git describe|sed -e 's/^v//') +export VERSION # Export for doc/ +RELEASE_DIR := omk-$(VERSION) +release: tag-check doc buildrules + -rm -rf $(RELEASE_DIR) + mkdir -p $(RELEASE_DIR) + cp -a rules $(RELEASE_DIR) + for i in $(RELEASE_DIR)/rules/*; do cp leaf-makefile/Makefile $$i; done + mkdir -p $(RELEASE_DIR)/doc + cp -a doc/omk-manual.txt doc/omk-manual.html doc/omk-manual.pdf $(RELEASE_DIR)/doc + cp --dereference doc/RelNotes.txt $(RELEASE_DIR)/doc + mkdir -p $(RELEASE_DIR)/bin + cp -a omk $(RELEASE_DIR)/bin + cp COPYING $(RELEASE_DIR) + tar czf $(RELEASE_DIR).tar.gz $(RELEASE_DIR) + rm -rf $(RELEASE_DIR) + gpg -sba $(RELEASE_DIR).tar.gz + +tag-check: + @test -n "$(VERSION)" || (echo "To create a release, please tag the repository with the tag 'vX.Y...'"; exit 1)