# Make snippet for generating/updating zip archive of a directory # # Copyright 2025, Jonas Smedegaard # SPDX-License-Identifier: GPL-3+ # # Setup: # In main Makefile... # * set variable ZIP_DIRS # * include this make snippet # # Dependencies: # * zip # list of relative paths to PDF documents #ZIP_DIRS = \ # subdir \ # deep/subdir $(ZIP_DIRS:%=zip-of-%): zip-of-%: zip -r $*.zip $* .PHONY: $(ZIP_DIRS:%=zip-of-%)