Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authornl6720 <nl6720@gmail.com>2020-07-16 14:40:27 +0300
committernl6720 <nl6720@gmail.com>2020-07-17 10:42:14 +0300
commita32477d27a12fa4b40538cbc7505a96138177192 (patch)
tree6afc3b6f164a6347eaa19c0d3c4e15f1ae4945a7 /Makefile
parent043262b5f71e3030ad5553597b0e9696f6ff56b2 (diff)
Add check target to Makefile
Makefile: Move shellcheck commands from .gitlab-ci.yml. .gitlab-ci.yml: Run `make check`. Prevent partial upgrades, i.e. use '-Syu'. Prevent reinstalling already installed packages by using pacman's '--needed' option. Don't force-download the package database.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6b479f9..3ee8a6a 100644
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,15 @@ DOC_DIR=$(DESTDIR)/usr/share/doc/archiso
all:
+check:
+ shellcheck -s bash archiso/mkarchiso \
+ scripts/run_archiso.sh \
+ $(INSTALL_FILES) \
+ $(wildcard configs/*/build.sh) \
+ configs/releng/airootfs/root/.automated_script.sh \
+ configs/releng/airootfs/usr/local/bin/choose-mirror
+ shellcheck -s dash $(HOOKS_FILES) $(SCRIPT_FILES)
+
install: install-program install-initcpio install-examples install-doc
install-program:
@@ -32,4 +41,4 @@ install-doc:
install -d $(DOC_DIR)
install -m 644 -t $(DOC_DIR) $(DOC_FILES)
-.PHONY: install install-program install-initcpio install-examples install-doc
+.PHONY: check install install-program install-initcpio install-examples install-doc