awl/GNUmakefile
Sam Therapy ded9890ac3
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing
MORE
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-07-25 23:09:52 +02:00

24 lines
No EOL
379 B
Makefile

# SPDX-License-Identifier: BSD-3-Clause
include template.mk
ifeq ($(OS),Windows_NT)
EXE := $(PROG).exe
else
EXE := $(PROG)
endif
$(PROG):
$(GO) build -o $(EXE) $(GOFLAGS) .
## install: installs awl
install: all
ifeq ($(OS),Windows_NT)
$(GO) install $(GOFLAGS) .
else
install -m755 $(PROG) $(PREFIX)/$(BIN)
install -m644 doc/$(PROG).1 $(MAN)/man1
endif
.PHONY: install