123456789101112131415161718192021222324252627282930313233 |
- AUTHOR := "Ralph Giles <giles@thaumas.net>"
- PACKAGE := hello
- VERSION := 0.0.1
- ARCH := amd64
- OS := linux
- ACI := $(PACKAGE)-$(VERSION)-$(OS)-$(ARCH).aci
- all: $(ACI)
- clean:
- -acbuild end
- $(RM) $(ACI)
- $(RM) $(PACKAGE)
- $(PACKAGE): hello.go
- CGO_ENABLED=0 GOOS=linux go build -o $@ -a -tags netgo -ldflags '-w' .
- $(ACI): $(PACKAGE)
- acbuild begin
- acbuild set-name thaumas.net/$<
- acbuild copy $< /bin/$<
- acbuild set-exec /bin/$<
- acbuild port add www tcp 5000
- acbuild label add version $(VERSION)
- acbuild label add arc $(ARCH)
- acbuild label add os $(OS)
- acbuild annotation add authors $(AUTHOR)
- acbuild write $@
- acbuild end
|