A PX4 based camera pointer

Makefile 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Holds short targets for the go tool commands.
  2. #
  3. # Copyright 2017 Google Inc.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. PKG = juju.net.nz/x/pipoint
  18. VERSION = $(shell git describe --tags --always --dirty)
  19. LDFLAGS = -ldflags "-X $(PKG).Version=$(VERSION)"
  20. build:
  21. go get $(LDFLAGS) $(PKG)/pipoint
  22. # Watch for changes, build, and push.
  23. watch:
  24. watchman-make -p '**/*.go' -t push
  25. run: build
  26. $(GOPATH)/bin/pipoint
  27. check:
  28. go get -t $(PKG)/...
  29. go test $(shell go list $(PKG)/... | grep -vF /vendor)
  30. coverage:
  31. go get -t $(PKG)
  32. go test -race -coverprofile=coverage.txt -covermode=atomic $(PKG)
  33. push:
  34. GOARCH=arm GOARM=7 go get $(LDFLAGS) $(PKG)/pipoint
  35. rsync -zt $(GOPATH)/bin/linux_arm/pipoint pi-ed7:~
  36. # Shh. This is to test gitea.