awl/GNUmakefile
Sam Therapy baaa41d60f
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
make makefile compatible with AUR
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-08-06 02:51:05 +02:00

26 lines
No EOL
440 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 -Dm755 $(PROG) $(DESTDIR)$(PREFIX)/$(BIN)/$(PROG)
install -Dm644 doc/$(PROG).1 $(DESTDIR)$(MAN)/man1/$(PROG).1
endif
.PHONY: install