source: trunk/Makefile.in @ 3856

Last change on this file since 3856 was 3749, checked in by gah, 11 years ago

fix Makefiles (one more time)

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))
[3717]24SVN_VERSION     := $(shell svnversion $(srcdir))
[498]25
[1189]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
[2811]30runtime_repo = https://nanohub.org/infrastructure/rappture-runtime/svn/trunk
31rappture_repo = https://nanohub.org/infrastructure/rappture/svn/trunk
[1189]32
[1132]33ENABLE_GUI      = @ENABLE_GUI@
[2890]34HAVE_FFMPEG     = @HAVE_FFMPEG_LIBS@
[2396]35TARGETS         = src lang lib
[1132]36
[1018]37ifneq ($(ENABLE_GUI),)
[2396]38  TARGETS += gui builder tester examples
[718]39endif
[3003]40ifneq ($(HAVE_FFMPEG),)
[2890]41  TARGETS += video
42endif
[489]43
[3749]44.PHONY: all test install clean distclean package distrib runtime-distrib \
45        $(TARGETS)
[511]46
[3741]47all:
48        for i in $(TARGETS) ; do \
49          $(MAKE) -C $$i all || exit 1 ;\
50        done
[3736]51
[2396]52test:
53        $(MAKE) -C test all
[511]54
[1018]55install:
[1132]56        for i in $(TARGETS) ; do \
57          $(MAKE) -C $$i install || exit 1 ;\
58        done
[489]59
[1733]60clean:
61        for i in $(TARGETS) ; do \
62          $(MAKE) -C $$i clean || exit 1 ;\
63        done
[489]64
[1733]65distclean: clean
[1018]66        $(RM) Makefile config.status config.log  *~
[1733]67        for i in $(TARGETS) ; do \
68          $(MAKE) -C $$i distclean || exit 1 ;\
69        done
[1018]70
71package:
[1189]72        tar -C $(pkg_path) -czlf $(rappture_binary_tarfile) $(pkg_name)
[1183]73
74distrib:
75        $(RM) -r exported
[1944]76        $(MKDIR_P) -m 0755 exported
[1189]77        (cd exported; svn export -q $(rappture_repo) rappture)
78        tar -C exported -czlf $(rappture_source_tarfile) rappture
[1183]79        $(RM) -r exported
[1189]80
81runtime-distrib:
82        $(RM) -r exported
[1944]83        $(MKDIR_P) -m 0755 exported
[1189]84        (cd exported; svn export -q $(runtime_repo) runtime)
85        tar -C exported -czlf $(runtime_source_tarfile) runtime
86        $(RM) -r exported
Note: See TracBrowser for help on using the repository browser.