]> rtime.felk.cvut.cz Git - orte.git/blob - Makefile.cvs
ROBOT_DEMO: change lift to crane
[orte.git] / Makefile.cvs
1 default: cvs
2         @echo "Now you can run './configure'"
3
4 cvs:
5         autoreconf -i 
6
7 all:
8         aclocal -I admin 
9         autoheader
10         automake
11         autoconf
12
13 .PHONY: default cvs all dist dist-tarball
14
15 VER=$(shell git describe --match='v[0-9]*' | sed -e 's/^v\(.*\)/\1/')
16
17 dist:
18         $(MAKE) VER=$(VER) dist-tarball dist-check
19         @echo "Tarball stored as orte-$(VER).tar.gz"
20
21 dist-tarball: orte-$(VER).tar.gz
22
23 orte-$(VER).tar.gz: $(shell git ls-files)
24 # Export clean sources and run autoreconf
25         test ! -d orte-$(VER)
26         git archive --format=tar --prefix=orte-$(VER)/ HEAD | tar x
27         make -C orte-$(VER) -f Makefile.cvs
28         rm -rf orte-$(VER)/autom4te.cache
29 # Export sources again for building of documentation and copy generated orte manual to release dir
30         test ! -d orte-$(VER)-doc
31         git archive --format=tar --prefix=orte-$(VER)-doc/ HEAD | tar x
32         make -C orte-$(VER)-doc/doc
33         cp orte-$(VER)-doc/doc/orteman.pdf orte-$(VER)/doc
34         rm -rf orte-$(VER)-doc
35 # Create tarball
36         tar czf $@ orte-$(VER)
37         rm -rf orte-$(VER)
38         @echo "Tarball stored as orte-$(VER).tar.gz"
39
40 dist-check: orte-$(VER).tar.gz
41         tar xf $<
42 # Check that we can compile the content of the tarball
43         mkdir orte-$(VER)/_build
44         cd orte-$(VER)/_build && ../configure && make V=0
45         mkdir orte-$(VER)/_win
46         cd orte-$(VER)/_win && ../configure --host=i686-w64-mingw32 CC=i686-w64-mingw32-gcc && make V=0
47         rm -rf orte-$(VER)