Update makefiles to build test apps

pull/133/head
Jim Jacobsen 2015-12-06 18:01:21 +00:00
rodzic 0be0dce9d5
commit b58f1993fd
2 zmienionych plików z 15 dodań i 1 usunięć

Wyświetl plik

@ -1,3 +1,6 @@
# check to make sure GOROOT variable is set
$(if $(GOROOT),,$(error GOROOT is not set!))
ifeq "$(CIRCLECI)" "true"
BUILDINFO=
else
@ -10,8 +13,9 @@ all:
go get -t -d -v ./...
go build $(BUILDINFO) main/gen_gdl90.go main/traffic.go main/ry835ai.go main/network.go main/managementinterface.go main/sdr.go main/uibroadcast.go
.PHONY: test
test:
sh -c true
make -C test
www:
mkdir -p /var/www

10
test/Makefile 100644
Wyświetl plik

@ -0,0 +1,10 @@
$(if $(GOROOT),,$(error GOROOT is not set!))
SRCS = $(wildcard *.go)
DEST = $(patsubst %.go,%,$(SRCS))
all: $(DEST)
%: %.go
go build $<