dpgpid/Makefile

32 lines
757 B
Makefile
Raw Normal View History

BINDIR ?= $(PREFIX)/bin
PREFIX ?= /usr/local
2022-05-13 19:40:16 +02:00
.PHONY: all default install shellcheck-% shellspec-% tests uninstall
-include $(MYOS)/make/include.mk
MYOS ?= ../myos
MYOS_REPOSITORY ?= $(patsubst %/dpgpid,%/myos,$(shell git config --get remote.origin.url 2>/dev/null))
$(MYOS):
-@git clone $(MYOS_REPOSITORY) $(MYOS)
2022-05-13 19:40:16 +02:00
default: tests
2022-05-16 22:34:47 +02:00
all: install tests
2022-05-13 19:40:16 +02:00
install:
mkdir -p "$(BINDIR)"
install dpgpid "$(BINDIR)/dpgpid"
install keygen "$(BINDIR)/keygen"
pip install -r requirements.txt
2022-05-13 19:40:16 +02:00
shellcheck-%:
2022-05-21 03:37:51 +02:00
shellcheck $*/*.sh
2022-05-13 19:40:16 +02:00
shellspec-%:
shellspec -f tap $*
tests: shellcheck-specs shellspec-specs
uninstall:
rm -f "$(BINDIR)/dpgpid"
rm -f "$(BINDIR)/keygen"