Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#57 closed defect (fixed)

kmk/kBuild: rename footer.kmk output variables like $(target)_OBJS_ — at Version 4

Reported by: bird Owned by: bird
Priority: major Milestone: 0.1.5
Component: kBuild Version: 0.1.3
Keywords: Cc:

Description (last modified by bird)

The variables set by footer.kmk in pass two will be named $(target)_2_BLAH. The ones set by footer.kmk in pass 1 will be named $(target)_1_BLAH. The variables set by subfooter.kmk and subheader.kmk will be named $(target)_0_BLAH. This will help avoiding confusion wrt to when they are safe to use and when second expansion is required.

Other variables:

  • $(target)_OUTPUT_
  • $(target)_OUTPUT_MAYBE_
  • $(target)_DEPEND_
  • $(target)_DEPORD_

Already official ones that may be considered for renaming to the new scheme:

  • PATH_$(target)
  • INSTARGET_$(target)
  • TARGET_$(target)

The old values that are *known* to be in use will kick around until 0.3.0, starting with 0.2.1 kBuild will bitch about them.

Change History (4)

comment:1 by bird, 16 years ago

(In [2020]) kbuild.c: $(target)_OBJS_ -> $(target)_2_OBJS. References #57.

comment:2 by bird, 16 years ago

(In [2239]) footer.kmk,subheader.kmk,subfooter.kmk,qt3.kmk,qt4.kmk: PATH_$(target) -> $(target)_0_OUTDIR, old variable is still valid for a while. References #57.

comment:3 by bird, 16 years ago

Resolution: fixed
Status: newclosed

See also [2234], [2236], [2237], [2238], [2240], [2241].

Summary:

  - PATH_$(target)          -> $(target)_0_OUTDIR
  - TARGET_$(target)        -> $(target)_1_TARGET
  - $(target)_OUTPUT_       -> $(target)_2_OUTPUT
  - $(target)_OUTPUT_MAYBE_ -> $(target)_2_OUTPUT_MAYBE
  - $(target)_DEPEND_       -> $(target)_2_DEPEND
  - $(target)_DEPORD_       -> $(target)_2_DEPORD

The $(target)_$(source) variants of the above has been hidden, the same has $(target)_CMDS. For FETCH targets there are some infix variants of the some of these variables, these have received the same general treatment.

INSTARGET_$(target) is left for the installation reworking.

comment:4 by bird, 16 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.