summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2019-08-06 19:11:33 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2019-08-06 19:39:54 +0200
commit04c7f9b44ddb3840ab3ca58b9bcb8fce39a2a285 (patch)
tree690beb0884990e512531ffe1068d8042567fab4c /Makefile
parent3c23cb6e3223d72116e9b16109f7e81adaf87d91 (diff)
[pkg] update depends
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 84ed31d..fecaa7d 100644
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,8 @@ depends:
@go get -u golang.org/x/text/cmd/gotext github.com/cratonica/2goarray
dependsLinux:
- @sudo apt install libgtk-3-dev libappindicator3-dev golang pkg-config cmake
+ @sudo apt install libgtk-3-dev libappindicator3-dev golang pkg-config dh-golang golang-golang-x-text-dev cmake devscripts fakeroot debhelper
+ @# debian needs also: snap install snapcraft --classic; snap install multipass --beta --classic
dependsDarwin:
# TODO - bootstrap homebrew if not there
@@ -46,7 +47,7 @@ get:
build: $(foreach path,$(wildcard cmd/*),build_$(patsubst cmd/%,%,$(path)))
build_%:
- @go build -tags $(TAGS) -ldflags "-X main.version=`git describe --tags`" -o $* ./cmd/$*
+ go build -tags $(TAGS) -ldflags "-X main.version=`git describe --tags`" -o $* ./cmd/$*
-@strip $*
@mkdir -p build/bin
@mv $* build/bin/
@@ -141,19 +142,20 @@ gen_pkg_deb:
# packaging action
#########################################################################
-pkg: pkg_win pkg_osx pkg_deb pkg_snap
+packages: pkg_snap pkg_deb pkg_osx pkg_win
-pkg_win:
+package_snap:
+ @make -C build/${PROVIDER} pkg_snap
+
+package_deb:
+ @make -C build/${PROVIDER} pkg_deb
+
+package_win:
@make -C build/${PROVIDER} pkg_win
-pkg_osx:
+package_osx:
@make -C build/${PROVIDER} pkg_osx
-pkg_deb:
- @make -C build/${PROVIDER} pkg_deb
-
-pkg_snap:
- @make -C build/${PROVIDER} pkg_snap
#########################################################################