Skip to content

Commit

Permalink
Don't build binaries when version file changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
caseydavenport committed Mar 22, 2016
1 parent fe94d0d commit cb0eafc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@
# Version of calico/build to use.
BUILD_VERSION=latest

SRCFILES=$(shell find calico_cni) calico.py ipam.py
SRCFILES=$(shell find calico_cni -type f ! -path calico_cni/version.py) calico.py ipam.py
LOCAL_IP_ENV?=$(shell ip route get 8.8.8.8 | head -1 | cut -d' ' -f8)

default: all
all: binary test
binary: dist/calico dist/calico-ipam
binary: update-version dist/calico dist/calico-ipam
test: ut fv
plugin: dist/calico
ipam: dist/calico-ipam


# Builds the Calico CNI plugin binary.
dist/calico: $(SRCFILES) update-version
dist/calico: $(SRCFILES)
docker run --rm \
-v `pwd`:/code \
calico/build:$(BUILD_VERSION) \
pyinstaller calico.py -ayF

# Makes the IPAM plugin.
dist/calico-ipam: $(SRCFILES) update-version
dist/calico-ipam: $(SRCFILES)
docker run --rm \
-v `pwd`:/code \
calico/build:$(BUILD_VERSION) \
Expand Down

0 comments on commit cb0eafc

Please sign in to comment.