rules 523 字节
Newer Older
H
haosanzi 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/usr/bin/make -f
BUILD_ROOT := $(CURDIR)/debian/rune
BUILD_DIR := /usr/bin
LICENSE := /usr/share/licenses/rune
PROTOBUF_VERSION := 1.3.5 

export GO111MODULE := on

%:
	dh $@

override_dh_auto_build:
	go get github.com/golang/protobuf/protoc-gen-go@v$(PROTOBUF_VERSION)
	make -C rune
override_dh_auto_install:
	install -d -p $(BUILD_ROOT)$(BUILD_DIR)
	install -p -m 755 $(CURDIR)/rune/rune $(BUILD_ROOT)$(BUILD_DIR)
	install -d -p $(BUILD_ROOT)$(LICENSE)
	install -p -m 644 $(CURDIR)/rune/LICENSE $(BUILD_ROOT)$(LICENSE)