]> rtime.felk.cvut.cz Git - orte.git/commitdiff
Add various build checks
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 14 Oct 2013 22:15:48 +0000 (00:15 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 14 Oct 2013 22:15:48 +0000 (00:15 +0200)
Makefile.git

index b490830e45c960c759d81943ca086f43a6db1643..170eb58abb215a3d175bfb49c61b2e717c65eb65 100644 (file)
@@ -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"