aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 86570f8..50c50f8 100644
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,8 @@ PKG_VERSION=0.0.0
PKG_WORKDIR:=$(or $(PKG_WORKDIR),$(shell mktemp -d))
PKG_ROOT:=$(PKG_WORKDIR)/bashtard-$(PKG_VERSION)
+rwildcard=$(foreach d,$(wildcard $(1:=/*)),$(call rwildcard,$d,$2) $(filter $(subst *,%,$2),$d))
+
all:
: # No build step required, use `make install` to install this program
@@ -65,8 +67,12 @@ pkg-debian:
dpkg-deb -b "$(PKG_ROOT)" "dist/bashtard-$(PKG_VERSION).deb"
qa:
+ # Check licenses
reuse lint
- shellcheck -x bin/bashtard **/*.bash
+
+ # Check code
+ shellcheck -s sh bin/bashtard
+ shellcheck -s bash $(call rwildcard,.,*.bash)
share:
mkdir -pv -- "$(PREFIX)$(DESTDIR)/share/bashtard"