# $Id$ # Top-level meta-makefile that simplifies building even further. # include @builddir@/Makefile.mk include @build_root@/build/Makefile.mk prefix = @prefix@ exec_prefix = @exec_prefix@ PACKAGE_NAME = @PACKAGE_NAME@ bindir = @bindir@ libdir = @libdir@ includedir = @includedir@ pincludedir = $(includedir)/$(PACKAGE_NAME) BASENAME = @BASENAME@ INSTALL = @INSTALL@ LN_S = @LN_S@ lbindir = $(build_root)/bin llibdir = $(build_root)/lib PROJECTS = @PROJECTS@ all: $(PROJECTS) if test -f $(builddir)/Makefile.flat; then \ cd $(builddir) && $(MAKE) -f Makefile.flat; \ elif test -s "$(PROJECTS)"; then \ cd $(builddir) && $(MAKE) $(MFLAGS) all_p; \ else \ cd $(builddir) && $(MAKE) $(MFLAGS) all_r; \ fi check: $(PROJECTS) if test -s "$(PROJECTS)"; then \ cd $(builddir) && $(MAKE) $(MFLAGS) check_p RUN_CHECK=Y; \ else \ cd $(builddir) && $(MAKE) $(MFLAGS) check_r RUN_CHECK=Y; \ fi install-toolkit: -$(RMDIR) $(pincludedir) $(INSTALL) -d $(bindir) $(libdir) $(pincludedir) $(INSTALL) $(lbindir)/* $(bindir) $(INSTALL) -m 644 $(llibdir)/*.* $(libdir) if test -d $(llibdir)/ncbi; then \ cp -pPR $(llibdir)/ncbi $(libdir)/; \ fi -rm -f $(libdir)/lib*-static.a cd $(libdir) && \ for x in *.a; do \ $(LN_S) "$$x" "`$(BASENAME) \"$$x\" .a`-static.a"; \ done for d in $(includedir0) $(incdir); do \ cd $$d && find * -name .svn -prune -o -print | \ cpio -pd $(pincludedir) ; \ done ## set up appropriate build and status directories somewhere under $(libdir)? install-gbench: cd $(builddir)/app/gbench/gbench_install && \ $(MAKE) $(MFLAGS) install_dir=$(exec_prefix) install: if test -d $(lbindir)/gbench; then \ $(MAKE) $(MFLAGS) install-gbench; \ else \ $(MAKE) $(MFLAGS) install-toolkit; \ fi