build: find dependencies for Go executables
To ensure that changing a dependency source file actually triggers a rebuild of the core binaries when you type 'make', find their dependencies and add them to the makefile's target dependencies. Signed-off-by: Dan Williams <dcbw@redhat.com>
This commit is contained in:
parent
9c44933b58
commit
95846211c9
2 changed files with 44 additions and 3 deletions
6
Makefile
6
Makefile
|
@ -68,15 +68,15 @@ copyimg: .gopathok $(wildcard test/copyimg/*.go)
|
|||
checkseccomp: .gopathok $(wildcard test/checkseccomp/*.go)
|
||||
go build -o test/checkseccomp/$@ $(PROJECT)/test/checkseccomp
|
||||
|
||||
ocid: .gopathok
|
||||
ocid: .gopathok $(shell hack/find-godeps.sh $(GOPKGDIR) cmd/ocid $(PROJECT))
|
||||
$(GO) build -o $@ \
|
||||
-tags "$(BUILDTAGS)" \
|
||||
$(PROJECT)/cmd/ocid
|
||||
|
||||
ocic: .gopathok
|
||||
ocic: .gopathok $(shell hack/find-godeps.sh $(GOPKGDIR) cmd/ocic $(PROJECT))
|
||||
$(GO) build -o $@ $(PROJECT)/cmd/ocic
|
||||
|
||||
kpod: .gopathok
|
||||
kpod: .gopathok $(shell hack/find-godeps.sh $(GOPKGDIR) cmd/kpod $(PROJECT))
|
||||
$(GO) build -o $@ $(PROJECT)/cmd/kpod
|
||||
|
||||
ocid.conf: ocid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue