forked from axiom-team/astrXbian
31 lines
494 B
Makefile
31 lines
494 B
Makefile
MYOS ?= ../myos
|
|
-include $(MYOS)/make/include.mk
|
|
.PHONY: all default install shellcheck shellcheck-% shellspec shellspec-% tests uninstall
|
|
|
|
SHELL_FILES ?= $(wildcard .*/*.sh */*.sh */*/*.sh)
|
|
|
|
$(MYOS):
|
|
git clone https://git.p2p.legal/aya/myos $(MYOS)
|
|
|
|
default: tests
|
|
|
|
all: install tests
|
|
|
|
install:
|
|
./install.sh
|
|
|
|
tests: shellcheck shellspec
|
|
|
|
shellcheck:
|
|
shellcheck $(SHELL_FILES) ||:
|
|
|
|
shellcheck-%:
|
|
shellcheck $*/*.sh
|
|
|
|
shellspec: shellspec-specs
|
|
|
|
shellspec-%:
|
|
shellspec -f tap $*
|
|
|
|
uninstall:
|