diff options
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | _make/_zip.mk | 22 |
2 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..95eb718 --- /dev/null +++ b/Makefile @@ -0,0 +1,3 @@ +ZIP_DIRS = Mussel + +include _make/*.mk 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-%) |