Skip to content

Commit

Permalink
Improvement to @goal @glob #46
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Sep 19, 2021
1 parent beb068e commit deeb8d0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions makesure.awk
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ BEGIN {
split("",DependenciesCnt) # name -> dep cnd
split("",Doc) # name -> doc str
split("",ReachedIf) # name -> condition line
GlobCnt = 0
GlobCnt = 0 # count of files for glob
GlobGoalName = ""
split("",GlobFiles) # list
split("",LibNames) # list
Expand Down Expand Up @@ -251,11 +251,11 @@ function handleGoalGlob( goalName,globAllGoal,globSingle,priv,i,pattern) {
for (i=0; i < GlobCnt; i++){
registerGoal(globGoal(i), globSingle ? priv : 1)
}
if (globSingle) # glob on single file
return
registerGoal(globAllGoal, priv)
for (i=0; i < GlobCnt; i++){
registerDependency(globAllGoal, globGoal(i))
if (!globSingle) { # glob on single file
registerGoal(globAllGoal, priv)
for (i=0; i < GlobCnt; i++){
registerDependency(globAllGoal, globGoal(i))
}
}
}

Expand Down

0 comments on commit deeb8d0

Please sign in to comment.