+export OS_VULS_DB?=/opt/akraino/validation/tests/os/vuls/db.tar.gz
+
+.PHONY: .init_db_cache
+.init_db_cache:
+ if [ ! -f $(OS_VULS_DB) ]; then \
+ sudo mkdir -p $(dir $(OS_VULS_DB)); \
+ sudo chown $(shell id -u):$(shell id -g) $(dir $(OS_VULS_DB)); \
+ tar czf $(OS_VULS_DB) -T /dev/null; \
+ fi
+
+.PHONY: .build
+.build::
+ if [ -f $(OS_VULS_DB) ]; then \
+ echo DB cache file found, will be used during the build; \
+ cp $(OS_VULS_DB) .; \
+ else \
+ tar czf $(notdir $(OS_VULS_DB)) -T /dev/null; \
+ fi
+ date +%s > $(notdir $(OS_VULS_DB)).timestamp
+