-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
34 lines (26 loc) · 1.55 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
install: scp
@ssh [email protected] PKG_CONFIG_PATH=/opt/vc/lib/pkgconfig /usr/local/go/bin/go install -x github.com/zchee/go-mmal/cmd/...
scp:
@ssh [email protected] rm -rf /home/pi/go/src/github.com/zchee/go-mmal/cmd
@scp -rq $(CURDIR)/cmd [email protected]:/home/pi/go/src/github.com/zchee/go-mmal
@ssh [email protected] /usr/local/go/bin/go get -d github.com/zchee/go-mmal/cmd/...
run/preview: install
@ssh [email protected] GODEBUG=cgocheck=0 /home/pi/go/bin/preview
run/list-encoding: install
@ssh [email protected] GODEBUG=cgocheck=0 /home/pi/go/bin/list-encoding vc.ril.camera
install/lib: scp/lib
@ssh [email protected] PKG_CONFIG_PATH=/opt/vc/lib/pkgconfig /usr/local/go/bin/go install -x github.com/zchee/go-mmal github.com/zchee/go-mmal/bcmhost
${MAKE} copy
scp/lib:
@ssh [email protected] mkdir -p /home/pi/go/src/github.com/zchee/go-mmal
@ssh [email protected] rm -rf /home/pi/go/src/github.com/zchee/go-mmal/*.go
@scp -q $(shell find . -maxdepth 1 -name '*.go' -and -not -name '_*') [email protected]:/home/pi/go/src/github.com/zchee/go-mmal
@scp -rq ./bcmhost [email protected]:/home/pi/go/src/github.com/zchee/go-mmal
copy:
@rm -rf $(shell go env GOPATH)/pkg/darwin_amd64/github.com/zchee/go-mmal*
@scp -r [email protected]:/home/pi/go/pkg/linux_arm/github.com/zchee/go-mmal.a $(shell go env GOPATH)/pkg/darwin_amd64/github.com/zchee
debug:
@go install ./internal/cmd/mmalgen
@mmalgen ~/src/github.com/raspberrypi/userland/interface/mmal/util/mmal_util_params.h
todo:
@pt TODO --after=1 --ignore Makefile