# Top-level makefile for the Virtual Server Administrator # Copyright (c) 1999, 2000 Idaya Ltd. # Contributed by Nick Burrett # This file is part of the Virtual Server Administrator (FreeVSD) # FreeVSD is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # FreeVSD is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with FreeVSD; see the file COPYING. If not, write to # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. # # Standard autoconf substitutions prefix=@prefix@ exec_prefix=@exec_prefix@ datadir=@datadir@ includedir=@includedir@ infodir=@infodir@ libdir=@libdir@ libexecdir=@libexecdir@ localstatedir=@localstatedir@ bindir=@bindir@ mandir=@mandir@ oldincludedir=@oldincludedir@ sbindir=@sbindir@ sharedstatedir=@sharedstatedir@ srcdir=@srcdir@ sysconfdir=@sysconfdir@ top_srcdir=@top_srcdir@ LIBS=@LIBS@ CC=@CC@ CFLAGS=@CFLAGS@ BISON=@BISON@ AR=@AR@ INSTALL=@INSTALL@ VPATH=$(srcdir) SHELL=/bin/sh # FreeVSD specific autoconf substitutions os_vendor=@os_vendor@ os_subdir=@os_subdir@ siteconf=@with_siteconf@ siteskel=@with_siteskel@ sitevsbatch=@with_sitevsbatch@ freevsdconf=@with_freevsdconf@ host_data=host/${os_subdir}-${os_vendor} enable_addons=@enable_addons@ SUBDIRS = @build_subdirs@ @amake_subdirs@ @incl_subdirs@ @host_subdirs@ MAKE_FLAGS_TO_PASS = "ROOT=${ROOT}" all: all-subdirs install: all all-install if [ ! -d ${ROOT}/${datadir}/freevsd/pkgs ]; then \ mkdir ${ROOT}/${datadir}/freevsd/pkgs; fi if [ ${enable_addons} != "no" ]; then \ cp -dR ${enable_addons}/* ${ROOT}/${datadir}/freevsd/pkgs ; \ echo "# Path to third party RPMs to install" \ >> ${ROOT}/${sysconfdir}/vsd/freevsd.conf ; \ echo "\$$add_ons = '${datadir}/freevsd/pkgs';" \ >> ${ROOT}/${sysconfdir}/vsd/freevsd.conf ; \ fi uninstall: all-uninstall clean: all-clean -rm -f *~ *.o *.a distclean: clean -rm -f configure config.cache config.h config.h.in config.log -rm -f Makefile all-clean: @set fnord $(MAKEFLAGS); list='$(SUBDIRS)'; \ target=`echo $@ | sed s/all-//`; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ local_target="$$target"; \ (cd $$subdir && $(MAKE) $(MAKE_FLAGS_TO_PASS) $$local_target); \ if [ $$? -eq 0 ]; then true; else exit 1; fi; \ done && test -z "$$fail" all-subdirs: @set fnord $(MAKEFLAGS); list='$(SUBDIRS)'; \ target=`echo $@ | sed s/-subdirs//`; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ local_target="$$target"; \ (cd $$subdir && $(MAKE) $(MAKE_FLAGS_TO_PASS) $$local_target); \ if [ $$? -eq 0 ]; then true; else exit 1; fi; \ done && test -z "$$fail"; all-uninstall: @set fnord $(MAKEFLAGS); list='$(SUBDIRS)'; \ target=`echo $@ | sed s/all-//`; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ local_target="$$target"; \ (cd $$subdir && $(MAKE) $(MAKE_FLAGS_TO_PASS) $$local_target); \ if [ $$? -eq 0 ]; then true; else exit 1; fi; \ done && test -z "$$fail"; all-install: @set fnord $(MAKEFLAGS); list='$(SUBDIRS)'; \ target=`echo $@ | sed s/all-//`; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ local_target="$$target"; \ (cd $$subdir && $(MAKE) $(MAKE_FLAGS_TO_PASS) $$local_target); \ if [ $$? -eq 0 ]; then true; else exit 1; fi; \ done && test -z "$$fail";