Sam Therapy
4c9221ee29
Some checks failed
continuous-integration/drone/push Build is failing
:^) Signed-off-by: Sam Therapy <sam@samtherapy.net>
26 lines
No EOL
400 B
Makefile
26 lines
No EOL
400 B
Makefile
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
include template.mk
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
EXE := $(PROG).exe
|
|
else
|
|
EXE := $(PROG)
|
|
|
|
endif
|
|
|
|
$(PROG): $(SOURCES)
|
|
$(GO) build -o $(EXE) $(GOFLAGS) .
|
|
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
## install: installs awl
|
|
install:
|
|
$(GO) install $(GOFLAGS) .
|
|
else
|
|
install: all
|
|
install -m755 $(PROG) $(PREFIX)/$(BIN)
|
|
install -m644 doc/$(PROG).1 $(MAN)/man1
|
|
endif
|
|
|
|
.PHONY: install |