source: trunk/Makefile.in @ 1412

Last change on this file since 1412 was 1228, checked in by gah, 16 years ago

Fixes for parallel makes

File size: 2.0 KB
RevLine 
[512]1
[942]2bindir          = @bindir@
[951]3datadir         = @datadir@
4datarootdir     = @datarootdir@
[708]5exec_prefix     = @exec_prefix@
[942]6includedir      = @includedir@
[708]7libdir          = @libdir@
8mandir          = @mandir@
[942]9prefix          = @prefix@
[1018]10srcdir          = @srcdir@
[708]11
[942]12INSTALL         = @INSTALL@
[1018]13SHELL           = @SHELL@
[1183]14MKDIR_P         = @MKDIR_P@
[1018]15RM              = rm -f
16VPATH           = $(srcdir)
[708]17
[942]18build_date      := $(shell date +%Y%m%d)
19machine         := $(shell uname -m | sed 's/\ //')
20os              := $(shell uname -s)
[512]21
[1189]22pkg_path        := $(shell dirname $(prefix))
23pkg_name        := $(shell basename $(prefix))
[498]24
[1189]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
[1132]32ENABLE_GUI      = @ENABLE_GUI@
[489]33
[1132]34TARGETS         = src
35
[1018]36ifneq ($(ENABLE_GUI),)
[1228]37  TARGETS += gui lang lib examples
[718]38endif
[489]39
[1228]40.NOTPARALLEL:
[498]41
[1132]42.PHONY: $(TARGETS)
[511]43
[1132]44all: $(TARGETS)
45
[1018]46src:
47        $(MAKE) -C src all
[1228]48gui:
[1018]49        $(MAKE) -C gui all
[1228]50lang:
[1018]51        $(MAKE) -C lang all
[1228]52examples:
53        $(MAKE) -C examples all
54lib:
[1046]55        $(MAKE) -C lib all
[1228]56test:
[1018]57        #$(MAKE) -C test all
[511]58
[1018]59install:
[1132]60        for i in $(TARGETS) ; do \
61          $(MAKE) -C $$i install || exit 1 ;\
62        done
[489]63
64clean:
[1018]65        $(MAKE) -C examples clean
[942]66        $(MAKE) -C gui clean
[1018]67        $(MAKE) -C lang clean
[1046]68        $(MAKE) -C lib clean
[942]69        $(MAKE) -C src clean
[1018]70        $(MAKE) -C test clean
[489]71
[1018]72distclean:
73        $(MAKE) -C examples distclean
[942]74        $(MAKE) -C gui distclean
[1018]75        $(MAKE) -C lang distclean
[1046]76        $(MAKE) -C lib distclean
[942]77        $(MAKE) -C src distclean
78        $(MAKE) -C test distclean
[1018]79        $(RM) Makefile config.status config.log  *~
80
81package:
[1189]82        tar -C $(pkg_path) -czlf $(rappture_binary_tarfile) $(pkg_name)
[1183]83
84distrib:
85        $(RM) -r exported
86        $(MKDIR_P) exported
[1189]87        (cd exported; svn export -q $(rappture_repo) rappture)
88        tar -C exported -czlf $(rappture_source_tarfile) rappture
[1183]89        $(RM) -r exported
[1189]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.