source: trunk/Makefile.in @ 4118

Last change on this file since 4118 was 4116, checked in by dkearney, 10 years ago

updating rappture build to include the --enable-lang or --disable-lang flag to control the building of language bindings. this is part of an update to build only the Rappture C/C++/Fortran bindings for use on grid machines.

File size: 2.1 KB
Line 
1
2bindir          = @bindir@
3datadir         = @datadir@
4datarootdir     = @datarootdir@
5exec_prefix     = @exec_prefix@
6includedir      = @includedir@
7libdir          = @libdir@
8mandir          = @mandir@
9prefix          = @prefix@
10srcdir          = @srcdir@
11
12INSTALL         = @INSTALL@
13SHELL           = @SHELL@
14MKDIR_P         = @MKDIR_P@
15RM              = rm -f
16VPATH           = $(srcdir)
17
18build_date      := $(shell date +%Y%m%d)
19machine         := $(shell uname -m | sed 's/\ //')
20os              := $(shell uname -s)
21
22pkg_path        := $(shell dirname $(prefix))
23pkg_name        := $(shell basename $(prefix))
24SVN_VERSION     := $(shell svnversion $(srcdir))
25
26rappture_binary_tarfile = rappture-$(os)-$(machine)-$(build_date).tar.gz
27rappture_source_tarfile = rappture-src-$(build_date).tar.gz
28runtime_source_tarfile = rappture-runtime-src-$(build_date).tar.gz
29
30runtime_repo = https://nanohub.org/infrastructure/rappture-runtime/svn/trunk
31rappture_repo = https://nanohub.org/infrastructure/rappture/svn/trunk
32
33ENABLE_GUI      = @ENABLE_GUI@
34HAVE_FFMPEG     = @HAVE_FFMPEG_LIBS@
35TARGETS         = src lib
36
37ifneq ($(ENABLE_LANG),)
38  TARGETS += lang
39endif
40ifneq ($(ENABLE_GUI),)
41  TARGETS += gui builder tester examples
42endif
43ifneq ($(HAVE_FFMPEG),)
44  TARGETS += video
45endif
46
47.PHONY: all test install clean distclean package distrib runtime-distrib \
48        $(TARGETS)
49
50all:
51        for i in $(TARGETS) ; do \
52          $(MAKE) -C $$i all || exit 1 ;\
53        done
54
55test:
56        $(MAKE) -C test all
57
58install:
59        for i in $(TARGETS) ; do \
60          $(MAKE) -C $$i install || exit 1 ;\
61        done
62
63clean:
64        for i in $(TARGETS) ; do \
65          $(MAKE) -C $$i clean || exit 1 ;\
66        done
67
68distclean: clean
69        $(RM) Makefile config.status config.log  *~
70        for i in $(TARGETS) ; do \
71          $(MAKE) -C $$i distclean || exit 1 ;\
72        done
73
74package:
75        tar -C $(pkg_path) -czlf $(rappture_binary_tarfile) $(pkg_name)
76
77distrib:
78        $(RM) -r exported
79        $(MKDIR_P) -m 0755 exported
80        (cd exported; svn export -q $(rappture_repo) rappture)
81        tar -C exported -czlf $(rappture_source_tarfile) rappture
82        $(RM) -r exported
83
84runtime-distrib:
85        $(RM) -r exported
86        $(MKDIR_P) -m 0755 exported
87        (cd exported; svn export -q $(runtime_repo) runtime)
88        tar -C exported -czlf $(runtime_source_tarfile) runtime
89        $(RM) -r exported
Note: See TracBrowser for help on using the repository browser.