super-graph/debian/rules

36 lines
773 B
Plaintext
Raw Permalink Normal View History

2020-06-15 18:50:47 +02:00
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
GO_VERSION := 1.14.4
OS := linux
ARCH := amd64
GOPATH=$(HOME)/go
ifeq (, $(shell which go 2>/dev/null))
override_dh_auto_build: install-go
endif
%:
dh $@
override_dh_auto_build: $(GOPATH)
GOPATH=$(GOPATH) PATH="$(PATH):/usr/local/go/bin:$(GOPATH)/bin" make linux
$(GOPATH):
mkdir -p $(GOPATH)
install-go:
wget https://dl.google.com/go/go$(GO_VERSION).$(OS)-$(ARCH).tar.gz
tar -C /usr/local -xzf go$(GO_VERSION).$(OS)-$(ARCH).tar.gz
override_dh_auto_install:
mkdir -p debian/super-graph/usr/bin
2020-06-15 19:54:49 +02:00
find ./release -name '*-linux-amd64' -exec cp {} debian/super-graph/usr/bin/super-graph \;
2020-06-15 18:50:47 +02:00
install -d debian/gengitkan
override_dh_strip:
override_dh_auto_test: