source: trunk/Makefile.in @ 1723

Last change on this file since 1723 was 1228, checked in by gah, 15 years ago

Fixes for parallel makes

File size: 2.0 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
35
36ifneq ($(ENABLE_GUI),)
37  TARGETS += gui lang lib examples
38endif
39
40.NOTPARALLEL:
41
42.PHONY: $(TARGETS)
43
44all: $(TARGETS)
45
46src:
47        $(MAKE) -C src all
48gui:
49        $(MAKE) -C gui all
50lang:
51        $(MAKE) -C lang all
52examples:
53        $(MAKE) -C examples all
54lib:
55        $(MAKE) -C lib all
56test:
57        #$(MAKE) -C test all
58
59install:
60        for i in $(TARGETS) ; do \
61          $(MAKE) -C $$i install || exit 1 ;\
62        done
63
64clean:
65        $(MAKE) -C examples clean
66        $(MAKE) -C gui clean
67        $(MAKE) -C lang clean
68        $(MAKE) -C lib clean
69        $(MAKE) -C src clean
70        $(MAKE) -C test clean
71
72distclean:
73        $(MAKE) -C examples distclean
74        $(MAKE) -C gui distclean
75        $(MAKE) -C lang distclean
76        $(MAKE) -C lib distclean
77        $(MAKE) -C src distclean
78        $(MAKE) -C test distclean
79        $(RM) Makefile config.status config.log  *~
80
81package:
82        tar -C $(pkg_path) -czlf $(rappture_binary_tarfile) $(pkg_name)
83
84distrib:
85        $(RM) -r exported
86        $(MKDIR_P) exported
87        (cd exported; svn export -q $(rappture_repo) rappture)
88        tar -C exported -czlf $(rappture_source_tarfile) rappture
89        $(RM) -r exported
90
91runtime-distrib:
92        $(RM) -r exported
93        $(MKDIR_P) exported
94        (cd exported; svn export -q $(runtime_repo) runtime)
95        tar -C exported -czlf $(runtime_source_tarfile) runtime
96        $(RM) -r exported
Note: See TracBrowser for help on using the repository browser.