summaryrefslogtreecommitdiffstats
path: root/data/lineageos_wiki
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2024-03-05 00:44:26 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2024-03-05 01:17:26 +0100
commit929e1f7c3bd4d879ed3c2b8f48d943903e0819d4 (patch)
tree017ba4fd593daa1d0f3a80e82f45912f0e9c7064 /data/lineageos_wiki
parent4e1dc64ecb33486e5d80521660a8ba15c0e3cf06 (diff)
downloadvendor_replicant-scripts-929e1f7c3bd4d879ed3c2b8f48d943903e0819d4.tar.gz
vendor_replicant-scripts-929e1f7c3bd4d879ed3c2b8f48d943903e0819d4.tar.bz2
vendor_replicant-scripts-929e1f7c3bd4d879ed3c2b8f48d943903e0819d4.zip
lineageos_wiki: Makefile: Add a way to check and print all devices.
We want to make sure that all the code works with all the available devices to enable to modify the criteria and still have something that works. Since that printing all the devices now work, we then enable this in the Makefile. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'data/lineageos_wiki')
-rw-r--r--data/lineageos_wiki/Makefile29
1 files changed, 25 insertions, 4 deletions
diff --git a/data/lineageos_wiki/Makefile b/data/lineageos_wiki/Makefile
index 9b85310..5120e89 100644
--- a/data/lineageos_wiki/Makefile
+++ b/data/lineageos_wiki/Makefile
@@ -1,11 +1,22 @@
-.PHONY: all check clean
+.PHONY: all check check-all check-replicant help clean
PYTHON ?= python3
LINEAGE_WIKI_PATH ?= lineage_wiki
LINEAGE_WIKI_REV ?= 36f4ed8f3ead74e74f7b3740bd755cf43ae379c4
-all: lineage_wiki_revision.txt
- $(PYTHON) find_lineageos_devices.py lineage_wiki
+all: help
+
+help:
+ @echo "Available targets:"
+ @echo "check # Run automatic tests."
+ @echo "replicant-devices # Print potential Replicant targets"
+ @echo "all-devices # Print all devices"
+
+all-devices: lineage_wiki_revision.txt
+ $(PYTHON) find_lineageos_devices.py lineage_wiki all
+
+replicant-devices: lineage_wiki_revision.txt
+ $(PYTHON) find_lineageos_devices.py lineage_wiki replicant
clean:
rm -rf lineage_wiki
@@ -23,10 +34,20 @@ lineage_wiki_revision.txt: $(LINEAGE_WIKI_PATH) Makefile
echo $(LINEAGE_WIKI_REV) > $@ ; \
fi
-check: lineage_wiki_revision.txt
+check-replicant: lineage_wiki_revision.txt
@if $(PYTHON) find_lineageos_devices.py lineage_wiki \
>/dev/null; then \
echo "[ OK ] lineageos_devices.py lineage_wiki" ; \
else \
echo "[ !! ] lineageos_devices.py lineage_wiki" ; \
fi
+
+check-all: lineage_wiki_revision.txt
+ @if $(PYTHON) find_lineageos_devices.py lineage_wiki all \
+ >/dev/null; then \
+ echo "[ OK ] lineageos_devices.py lineage_wiki all" ; \
+ else \
+ echo "[ !! ] lineageos_devices.py lineage_wiki all" ; \
+ fi
+
+check: check-replicant check-all