:global GlobalFuncReady false;
# Git commit id & info, expected configuration version
-:global CommitId "main/508/2246f173";
+:global CommitId "main/509/c2f4139d";
:global CommitTAG "unknown";
-:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 05:55:02 04.05.2026.";
+:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 06:00:03 04.05.2026.";
# The variables are received right here.
:global GlobalConfVersion 138;
TARGETS := $(sort $(FILE_TARGETS) $(DIR_TARGETS))
CHECK_TARGETS := $(addprefix check-,$(TARGETS))
CLEAN_TARGETS := $(addprefix clean-,$(TARGETS))
-CLEAN_ALL := $(notdir $(LIST_DIRS))
# Big CA list with all certificates ~ 2Mb
ALL_CA_URL := https://curl.se/ca/cacert.pem
--silent \
--show-error
-.PHONY: default help all all-ca-lst download-list check-list clean-list clean $(TARGETS) $(CHECK_TARGETS) $(CLEAN_TARGETS) $(CLEAN_ALL)
+.PHONY: default help all clean all-ca-lst download-list check-list clean-list $(TARGETS) $(CHECK_TARGETS) $(CLEAN_TARGETS)
default: help
@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"
all: all-ca-lst $(TARGETS)
-clean-list: $(CLEAN_TARGETS)
-
-clean: $(CLEAN_ALL)
+clean: $(CLEAN_TARGETS)
all-ca-lst:
@tmp="$$(mktemp)"; \
$(DIR_TARGETS): %: $(LIST_ROOT)/%
@$(MAKE) download-list LIST="$<" OUT_DIR="$@"
-$(CHECK_TARGETS): check-list-%:
+$(CHECK_TARGETS): check-%:
@$(MAKE) check-list OUT_DIR="$*"
-$(CLEAN_TARGETS): clean-list-%:
+$(CLEAN_TARGETS): clean-%:
@$(MAKE) clean-list OUT_DIR="$*"
-$(CLEAN_ALL): %: $(LIST_ROOT)/%
- @$(MAKE) clean LIST="$<" RM_DIR="$@"
-
-
# List format: check-url download-url. Both may omit https://.
# download-url may also be a local path. Downloaded files are named by CN.
download-list:
mv -- "$$tmp_index" "$(OUT_DIR)/$(INDEX_FILE)"; \
mv -- "$$tmp_urls" "$(OUT_DIR)/$(INDEX_URLS)"; \
true
-
-clean:
- echo "Remove directory $(RM_DIR)"; >&2; \
- echo "List directory $(LIST)"; >&2; \
- echo "===> $@ done!" >&2;
-
-# @rm -rf $(BUILD_DIR)/$(OUT_DIR); \