source: trunk/Makefile.in @ 2298

Last change on this file since 2298 was 2298, checked in by gah, 13 years ago

fixes for grid.sh build for opensees

File size: 1.9 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
[2298]34TARGETS         = src lang
[1132]35
[1018]36ifneq ($(ENABLE_GUI),)
[2298]37  TARGETS += gui lib builder tester examples
[718]38endif
[489]39
[1132]40.PHONY: $(TARGETS)
[511]41
[1132]42all: $(TARGETS)
[1733]43        for i in $(TARGETS) ; do \
44          $(MAKE) -C $$i all || exit 1 ;\
45        done
[1228]46test:
[1018]47        #$(MAKE) -C test all
[511]48
[1018]49install:
[1132]50        for i in $(TARGETS) ; do \
51          $(MAKE) -C $$i install || exit 1 ;\
52        done
[489]53
[1733]54clean:
[1734]55        $(RM) config.status config.log  *~
[1733]56        for i in $(TARGETS) ; do \
57          $(MAKE) -C $$i clean || exit 1 ;\
58        done
[489]59
[1733]60distclean: clean
[1018]61        $(RM) Makefile config.status config.log  *~
[1733]62        for i in $(TARGETS) ; do \
63          $(MAKE) -C $$i distclean || exit 1 ;\
64        done
[1018]65
66package:
[1189]67        tar -C $(pkg_path) -czlf $(rappture_binary_tarfile) $(pkg_name)
[1183]68
69distrib:
70        $(RM) -r exported
[1944]71        $(MKDIR_P) -m 0755 exported
[1189]72        (cd exported; svn export -q $(rappture_repo) rappture)
73        tar -C exported -czlf $(rappture_source_tarfile) rappture
[1183]74        $(RM) -r exported
[1189]75
76runtime-distrib:
77        $(RM) -r exported
[1944]78        $(MKDIR_P) -m 0755 exported
[1189]79        (cd exported; svn export -q $(runtime_repo) runtime)
80        tar -C exported -czlf $(runtime_source_tarfile) runtime
81        $(RM) -r exported
Note: See TracBrowser for help on using the repository browser.