Makefile 441 B

12345678910111213141516
  1. # This file is subject to a 1-clause BSD license.
  2. # Its contents can be found in the enclosed LICENSE file.
  3. REVISION=github.com/monkeybird/autimaat/app.VersionRevision
  4. LDFLAGS_DEBUG="-X $(REVISION)=`date -u +%s`"
  5. LDFLAGS_RELEASE="-w -s -X $(REVISION)=`date -u +%s`"
  6. # Rebuild the binary and install it locally.
  7. # Fork the currently running process, if applicable.
  8. all:
  9. go install -ldflags $(LDFLAGS_DEBUG)
  10. kill -USR1 `pidof autimaat`