diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -39,6 +39,9 @@ getlibs: updatelibs: @$(foreach lib,$(LIBS), echo "updating lib: $(lib)"; $(GOCMD) get -u $(lib);) +getlibs-noinstall: + @$(foreach lib,$(LIBS), echo "fetching lib: $(lib)"; $(GOCMD) get -d $(lib);) + vet: @echo "vetting: $(EXECUTEABLE)" @$(GOCMD) vet $(EXECUTEABLE) @@ -55,6 +58,10 @@ build: getlibs @echo "installing: $(EXECUTEABLE)" @$(GOCMD) install $(EXECUTEABLE) +build-386: getlibs-noinstall + @echo "cross-building: $(EXECUTEABLE)" + @mkdir -p bin/linux_386 + @GOARCH=386 CGO_ENABLED=0 $(GOCMD) build -o bin/linux_386/$(EXECUTEABLE) $(EXECUTEABLE) clean: rm -rf pkg/*/$(EXECUTEABLE) |