source: trunk/Makefile.in @ 2734

Last change on this file since 2734 was 2687, checked in by ldelgass, 13 years ago

Build fixes

File size: 1.8 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))
24
25rappture_binary_tarfile = rappture-$(os)-$(machine)-$(build_date).tar.gz
26rappture_source_tarfile = rappture-src-$(build_date).tar.gz
27runtime_source_tarfile = rappture-runtime-src-$(build_date).tar.gz
28
29runtime_repo = https://repo.nanohub.org/svn/rappture-runtime/trunk
30rappture_repo = https://repo.nanohub.org/svn/rappture/trunk
31
32ENABLE_GUI      = @ENABLE_GUI@
33
34TARGETS         = src lang lib
35
36ifneq ($(ENABLE_GUI),)
37  TARGETS += gui builder tester examples
38endif
39
40.PHONY: $(TARGETS)
41
42all: $(TARGETS)
43        for i in $(TARGETS) ; do \
44          $(MAKE) -C $$i all || exit 1 ;\
45        done
46test:
47        $(MAKE) -C test all
48
49install:
50        for i in $(TARGETS) ; do \
51          $(MAKE) -C $$i install || exit 1 ;\
52        done
53
54clean:
55        for i in $(TARGETS) ; do \
56          $(MAKE) -C $$i clean || exit 1 ;\
57        done
58
59distclean: clean
60        $(RM) Makefile config.status config.log  *~
61        for i in $(TARGETS) ; do \
62          $(MAKE) -C $$i distclean || exit 1 ;\
63        done
64
65package:
66        tar -C $(pkg_path) -czlf $(rappture_binary_tarfile) $(pkg_name)
67
68distrib:
69        $(RM) -r exported
70        $(MKDIR_P) -m 0755 exported
71        (cd exported; svn export -q $(rappture_repo) rappture)
72        tar -C exported -czlf $(rappture_source_tarfile) rappture
73        $(RM) -r exported
74
75runtime-distrib:
76        $(RM) -r exported
77        $(MKDIR_P) -m 0755 exported
78        (cd exported; svn export -q $(runtime_repo) runtime)
79        tar -C exported -czlf $(runtime_source_tarfile) runtime
80        $(RM) -r exported
Note: See TracBrowser for help on using the repository browser.