From: Michal Sojka Date: Mon, 14 Oct 2013 22:15:48 +0000 (+0200) Subject: Add various build checks X-Git-Tag: v0.3.4~21 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/orte.git/commitdiff_plain/a49899033fe7db8bf451dc97c798059d34ce2f60 Add various build checks --- diff --git a/Makefile.git b/Makefile.git index b490830..170eb58 100644 --- a/Makefile.git +++ b/Makefile.git @@ -2,18 +2,41 @@ default: git @echo "Now you can run './configure'" git: - autoreconf -i + autoreconf -i all: - aclocal -I admin + aclocal -I admin autoheader automake autoconf -.PHONY: default cvs all dist dist-tarball +.PHONY: default git all dist dist-tarball VER=$(shell git describe --match='v[0-9]*' | sed -e 's/^v\(.*\)/\1/') +configure: git + +check: configure + $(MAKE) -f Makefile.git check-windows check-autotools check-java + +check-windows: + mkdir -p _check-win + cd _check-win && ../configure --host=i586-mingw32msvc CC=i586-mingw32msvc-gcc + cd _check-win && $(MAKE) + +check-autotools: + mkdir -p _check-autotools + cd _check-autotools && ../configure + cd _check-autotools && $(MAKE) + +check-java: JAVAC=$(shell readlink -f $(which javac)) +check-java: JAVA_HOME=$(JAVAC:%/bin/javac=%) +check-java: + mkdir -p _check-java + cd _check-java && ../configure --with-java=$(JAVA_HOME) + cd _check-java && $(MAKE) + false # Java is not compiled - either fix it or update README + dist: $(MAKE) VER=$(VER) dist-tarball dist-check @echo "Tarball stored as orte-$(VER).tar.gz"