ifchange.go | 8 +++++--- usage.go | 2 +- diff --git a/ifchange.go b/ifchange.go index 9c7f24ab365128caeb10f1834e31d17ceb3d2351b71cabedd710fd78b3112db4..b7fe7c66ec482195d9825ee3d63134167303ba3b39292fd984179ee3b1b54412 100644 --- a/ifchange.go +++ b/ifchange.go @@ -83,9 +83,11 @@ defer Jobs.Wait() trace(CDebug, "collecting deps") seen := map[string]struct{}{} deps := map[string]map[string]struct{}{} - for _, tgt := range tgts { - for _, tgt := range collectDeps(Cwd, tgt, 0, deps) { - seen[tgt] = struct{}{} + for _, tgtInitial := range tgts { + for _, tgt := range collectDeps(Cwd, tgtInitial, 0, deps) { + if tgt != tgtInitial { + seen[tgt] = struct{}{} + } } } if len(seen) == 0 { diff --git a/usage.go b/usage.go index a3be736a04e3035d73704f6ea53293eccd46b4b17f41ec99dfb67da5c7fa462a..6748463353fb7f8989a808c327aa042ff02c678f4cabff22b1df69289eeb9b96 100644 --- a/usage.go +++ b/usage.go @@ -26,7 +26,7 @@ "strings" ) const ( - Version = "0.3.1" + Version = "0.4.0" Warranty = `This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License.