diff options
Diffstat (limited to '_make/_zip.mk')
-rw-r--r-- | _make/_zip.mk | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/_make/_zip.mk b/_make/_zip.mk new file mode 100644 index 0000000..b610802 --- /dev/null +++ b/_make/_zip.mk @@ -0,0 +1,22 @@ +# Make snippet for generating/updating zip archive of a directory +# +# Copyright 2025, Jonas Smedegaard <dr@jones.dk> +# 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-%) |