Makefile 312 B

1234567891011121314151617181920
  1. INSTDIR?=/usr/local
  2. BINDIR?=$(INSTDIR)/bin
  3. GO?=go
  4. GOSRC!=find . -name '*.go'
  5. passphrase-entropy: $(GOSRC)
  6. $(GO) build \
  7. -o $@
  8. # Exists in GNUMake but not in NetBSD make and others.
  9. RM?=rm -f
  10. clean:
  11. $(RM) passphrase-entropy
  12. install: passphrase-entropy
  13. mkdir -p $(BINDIR)
  14. install -m755 $< $(BINDIR)/$<