:global GlobalFuncReady false;
# Git commit id & info, expected configuration version
-:global CommitId "main/498/954e6669";
+:global CommitId "main/499/9fc0c4df";
:global CommitTAG "unknown";
-:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 05:00:03 04.05.2026.";
+:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 05:10:02 04.05.2026.";
# The variables are received right here.
:global GlobalConfVersion 138;
DIR_TARGETS := $(notdir $(LIST_DIRS))
TARGETS := $(sort $(FILE_TARGETS) $(DIR_TARGETS))
CHECK_TARGETS := $(addprefix check-,$(TARGETS))
-CLEAN_TARGETS := $(addprefix clean-,$(TARGETS))
+CLEAN_ALL := $(addprefix clean-,$(TARGETS))
+CLEAN_TARGETS := $(addprefix clean-list-,$(TARGETS))
# Big CA list with all certificates ~ 2Mb
ALL_CA_URL := https://curl.se/ca/cacert.pem
--silent \
--show-error
-.PHONY: default help all clean all-ca-lst download-list check-list clean-list $(TARGETS) $(CHECK_TARGETS) $(CLEAN_TARGETS)
+.PHONY: default help all clean clean-list all-ca-lst download-list check-list clean-list $(TARGETS) $(CHECK_TARGETS) $(CLEAN_ALL) $(CLEAN_TARGETS)
default: help
help:
@echo "Targets:"
- @echo " make all Download all-ca-lst and all list targets: $(TARGETS)"
- @echo " make <target> Download certs into ./<target>/ as CN-based *.pem"
- @echo " make check-<target> Check certs using ./<target>/$(INDEX_FILE)"
- @echo " make clean Remove unavailable PEM files from target dirs only"
- @echo " make clean-<target> Clean one target dir using its index"
- @echo " make all-ca-lst Recreate $(CA_LIST_DIR)/ and split bundle into CN-based PEM files"
+ @echo " make all Download all-ca-lst and all list targets: $(TARGETS)"
+ @echo " make <target> Download certs into ./<target>/ as CN-based *.pem"
+ @echo " make check-<target> Check certs using ./<target>/$(INDEX_FILE)"
+ @echo " make clean Remove all targets dirs"
+ @echo " make clean-list Remove unavailable PEM files from target dirs only"
+ @echo " make clean-list-<target> Clean one target dir using its index"
+ @echo " make all-ca-lst Recreate $(CA_LIST_DIR)/ and split bundle into CN-based PEM files"
@echo "Lists: $(LIST_ROOT)/Makefile.<target> or $(LIST_ROOT)/<target>/*"
@echo "Format: check-url download-url"
@echo "Example: api.telegram.org https://certs.godaddy.com/repository/gdroot-g2.crt"
all: all-ca-lst $(TARGETS)
-clean: $(CLEAN_TARGETS)
+clean: $(CLEAN_ALL)
+
+clean-list: $(CLEAN_TARGETS)
all-ca-lst:
@tmp="$$(mktemp)"; \
$(CHECK_TARGETS): check-%:
@$(MAKE) check-list OUT_DIR="$*"
-$(CLEAN_TARGETS): clean-%:
+$(CLEAN_TARGETS): clean-list-%:
@$(MAKE) clean-list OUT_DIR="$*"
# List format: check-url download-url. Both may omit https://.
mv -- "$$tmp_index" "$(OUT_DIR)/$(INDEX_FILE)"; \
mv -- "$$tmp_urls" "$(OUT_DIR)/$(INDEX_URLS)"; \
true
+
+clean:
+ @echo "Remove directory $(OUT_DIR)"; \
+ cd "$(BUILD_DIR)"; \
+ rm -rf $(OUT_DIR); \
+ @echo "===> $@ done!";