diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-05-12 19:26:25 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-05-12 19:26:25 (GMT) |
commit | 2d32de3d672073e4cafa37af2d9516f911912b78 (patch) | |
tree | 4494b4bd95555e9822ce225d2432e88733e6bc45 | |
parent | 18c41073a7334ef97ff57dcc4216128f10403bcd (diff) |
add build target for i386 static
-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) |