# ============================================================== # Copyright (c) 1996-1998 Tim Barbour. # Copyright (c) 1998-1999 ACT Financial Systems Pty Ltd. # All Rights Reserved. # This make library may be used and distributed under the terms # of the GNU LGPL, as published by the Free Software Foundation. # See the file COPYING for details. # ============================================================== # $Id: baseline.mk,v 1.8 2000/05/20 03:09:31 trb Exp $ #------------------------------------------------------------------------------------------------------- # text requires: #------------------------------------------------------------------------------------------------------- # rules require: baseline_umask baseline_platway emission_platway MKDIR TAR RMFR #------------------------------------------------------------------------------------------------------- # refers to: #------------------------------------------------------------------------------------------------------- # provides rules for: making baseline #------------------------------------------------------------------------------------------------------- # provides variables: #------------------------------------------------------------------------------------------------------- # provides commands: #------------------------------------------------------------------------------------------------------- # contributes to: #------------------------------------------------------------------------------------------------------- .PHONY : unsafe_baseline baseline clean_baseline # baseline is just like emission tree, minus the bulky, superfluous object files unsafe_baseline :: @echo "=== installing from emission tree to baseline" @umask $(baseline_umask); \ $(MKDIR) $(baseline_platway); \ cd $(emission_platway); \ $(TAR) cf $(baseline_platway)/tmp.tar * --exclude='*/obj/*'; \ cd $(baseline_platway); \ $(TAR) xf tmp.tar; \ $(RM) tmp.tar # we check all the tests before proceeding baseline :: @$(MAKE) %:test "trail := ." @$(MAKE) clean_baseline @$(MAKE) unsafe_baseline clean_baseline :: $(RMFR) $(baseline_platway)