Makefile: enable skipping tests

This commit is contained in:
Peter Fajdiga
2024-10-19 15:47:53 +02:00
parent 86ab4a20f4
commit 66bc14287d

View File

@@ -1,4 +1,5 @@
VERSION = $(shell grep '"Version":' ./package/metadata.json | grep -o '[0-9\.]*')
TESTS := true
.PHONY: *
@@ -8,7 +9,9 @@ build: tests
./run-ts.sh ./src/generators/config > ./package/contents/config/main.xml
tests:
ifeq (${TESTS}, true)
./run-ts.sh ./src/tests
endif
install: build
kpackagetool6 --type=KWin/Script --install=./package || kpackagetool6 --type=KWin/Script --upgrade=./package