make-rules/prep-git.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 GIT repo must have a GIT_REPO{_[0-9]+} and
    27 # Anything that we pull from a GIT repo must have a GIT_REPO{_[0-9]+} and
    28 # GIT_COMMIT_ID{_[0-9]+} to match.
    28 # GIT_COMMIT_ID{_[0-9]+} to match.
    29 #
    29 #
    30 
    30 
    31 TMP_SUFFIXES = $(subst GIT_REPO_,, $(filter GIT_REPO_%, $(.VARIABLES)))
    31 GIT_SUFFIXES = $(subst GIT_REPO_,, $(filter GIT_REPO_%, $(.VARIABLES)))
    32 
    32 
    33 define git-rules
    33 define git-rules
    34 ifdef GIT_REPO$(1)
    34 ifdef GIT_REPO$(1)
    35 ifdef GIT_COMMIT_ID$(1)
    35 ifdef GIT_COMMIT_ID$(1)
    36 
    36 
    72 #
    72 #
    73 # Define the rules required to download any source archives and augment any
    73 # Define the rules required to download any source archives and augment any
    74 # cleanup macros.
    74 # cleanup macros.
    75 #
    75 #
    76 $(eval $(call git-rules,))
    76 $(eval $(call git-rules,))
    77 $(foreach suffix, $(TMP_SUFFIXES), $(eval $(call git-rules,_$(suffix))))
    77 $(foreach suffix, $(GIT_SUFFIXES), $(eval $(call git-rules,_$(suffix))))