# ============================================================== # 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: wayless_targets.mk,v 1.8 2001/11/14 22:52:20 trb Exp $ #------------------------------------------------------------------------------------------------------- # text requires: TAGFILE #------------------------------------------------------------------------------------------------------- # rules require: TAR RM RMFR emission_root inst_dir baseline_dir TARFLAGS #------------------------------------------------------------------------------------------------------- # refers to: #------------------------------------------------------------------------------------------------------- # provides rules for: way-independent targets #------------------------------------------------------------------------------------------------------- # provides variables: #------------------------------------------------------------------------------------------------------- # provides commands: #------------------------------------------------------------------------------------------------------- # contributes to: #------------------------------------------------------------------------------------------------------- # contains (way-independent) install and baseline targets # these are also target_platform-independent # not way dependent, not recursive either nonway_targets = realclean realclean_install realclean_baseline tags .PHONY : $(nonway_targets) #//+ is it appropriate for all these to be double colon targets ? realclean :: $(RMFR) $(emission_root) realclean_install :: $(RMFR) $(inst_dir) realclean_baseline :: $(RMFR) $(BASELINE_ROOT) # use a top-scoped target (and reset trail) so this will always make from the top-level # since tags_rec is stubbornly way-dependent, we only make it for the debug way #//+ set the target_type to pre-empt recursion over target types - should find a better way #//+ or why not just let it recurse ? tags :: @$(MAKE) %:tags_rec "trail := ." "WAYS = $(debug_way)" "target_type = library" @$(MKDIR) $(dir $(top_level_tags_file)) $(FIND) $(emission_root) -follow -name $(tagfile_local_name) | $(XARGS) $(CAT) > $(top_level_tags_file)