Ignore:
Timestamp:
Jan 28, 2015, 7:25:31 PM (10 years ago)
Author:
bird
Message:

subheader/footer.kmk: No need to redefine def_subfooter/def_subheader all the time; moved them to header.kmk and merged them (identical) into a single define.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/header.kmk

    r2751 r2763  
    55
    66#
    7 # Copyright (c) 2004-2014 knut st. osmundsen <bird-kBuild-spam-xiv@anduin.net>
     7# Copyright (c) 2004-2015 knut st. osmundsen <bird-kBuild-spam-xiv@anduin.net>
    88#
    99# This file is part of kBuild.
     
    15671567
    15681568#
     1569# An internal define used by subheader.kmk and subfooter.kmk.
     1570# We keep them here to avoid redefining them for each sub-makefile.
     1571#
     1572define def_subfooter_header_target_pass
     1573 ifndef $(target)_PATH
     1574  ifndef $(target)_DEFPATH
     1575   $(target)_DEFPATH := $(PATH_SUB_CURRENT)
     1576  endif
     1577  $(call KB_FN_ASSIGN_DEPRECATED,$(target)_PATH,$($(target)_DEFPATH), $(target)_DEFPATH)
     1578 else ifndef $(target)_DEFPATH
     1579  $(target)_DEFPATH := $($(target)_PATH)
     1580 endif
     1581 ifndef $(target)_MAKEFILE
     1582  $(target)_MAKEFILE := $(MAKEFILE_CURRENT)
     1583 endif
     1584 ifndef $(target)_0_OUTDIR
     1585  $(target)_0_OUTDIR := $(call TARGET_PATH,$(target))
     1586  $(call KB_FN_ASSIGN_DEPRECATED,PATH_$(target),$($(target)_0_OUTDIR), $(target)_0_OUTDIR)
     1587 endif
     1588endef
     1589
     1590
     1591#
    15691592# Validate any KBUILD_BLD_TYPES additions and finally the KBUILD_TYPE.
    15701593#
Note: See TracChangeset for help on using the changeset viewer.