summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2bb8872..c87c39f 100644
--- a/Makefile
+++ b/Makefile
@@ -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)