24 lines
364 B
Makefile
24 lines
364 B
Makefile
PREFIX ?= /usr/local
|
|
BINDIR ?= $(PREFIX)/bin
|
|
|
|
.PHONY: all default install shellcheck-% shellspec-% tests uninstall
|
|
|
|
default: tests
|
|
|
|
all: install tests
|
|
|
|
install:
|
|
mkdir -p "$(BINDIR)"
|
|
install dpgpid "$(BINDIR)/dpgpid"
|
|
|
|
shellcheck-%:
|
|
shellcheck $*/*
|
|
|
|
shellspec-%:
|
|
shellspec -f tap $*
|
|
|
|
tests: shellcheck-specs shellspec-specs
|
|
|
|
uninstall:
|
|
rm -f "$(BINDIR)/dpgpid"
|