make-rules/prep-hg.mk
changeset 4251 2bf7e2c1ca74
parent 4196 d697072a92f5
child 4358 76306610179e
equal deleted inserted replaced
4250:80b910c051fc 4251:2bf7e2c1ca74
    26 #
    26 #
    27 # Anything that we pull from a Mercurial repo must have a HG_REPO{_[0-9]+} and
    27 # Anything that we pull from a Mercurial repo must have a HG_REPO{_[0-9]+} and
    28 # HG_REV{_[0-9]+} to match.
    28 # HG_REV{_[0-9]+} to match.
    29 #
    29 #
    30 
    30 
    31 TMP_SUFFIXES = $(subst HG_REPO_,, $(filter HG_REPO_%, $(.VARIABLES)))
    31 HG_SUFFIXES = $(subst HG_REPO_,, $(filter HG_REPO_%, $(.VARIABLES)))
    32 
    32 
    33 define mercurial-rules
    33 define mercurial-rules
    34 ifdef HG_REPO$(1)
    34 ifdef HG_REPO$(1)
    35 ifdef HG_REV$(1)
    35 ifdef HG_REV$(1)
    36 
    36 
    70 #
    70 #
    71 # Define the rules required to download any source archives and augment any
    71 # Define the rules required to download any source archives and augment any
    72 # cleanup macros.
    72 # cleanup macros.
    73 #
    73 #
    74 $(eval $(call mercurial-rules,))
    74 $(eval $(call mercurial-rules,))
    75 $(foreach suffix, $(TMP_SUFFIXES), $(eval $(call mercurial-rules,_$(suffix))))
    75 $(foreach suffix, $(HG_SUFFIXES), $(eval $(call mercurial-rules,_$(suffix))))