aboutsummaryrefslogtreecommitdiff
path: root/_make
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-03-31 17:31:59 +0200
committerJonas Smedegaard <dr@jones.dk>2025-03-31 17:47:44 +0200
commit529df366ad61fb2b394d99b5b5ad0dfa5c780451 (patch)
tree70ac7fff231350fc393609e777c65c58646bb7e2 /_make
parentdb57e539760b4f9d3fba2f7027abe9dbd017c45d (diff)
add make znippet zip.mk
Diffstat (limited to '_make')
-rw-r--r--_make/zip.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/_make/zip.mk b/_make/zip.mk
new file mode 100644
index 0000000..be2d268
--- /dev/null
+++ b/_make/zip.mk
@@ -0,0 +1,14 @@
+# GNUMake snippet for generating a zip file with source files
+#
+# SPDX-License-Identifier: GPL-3.0-or-later
+# SPDX-FileCopyrightText: 2024-2025 Jonas Smedegaard <dr@jones.dk>
+#
+# Setup:
+# In main Makefile...
+# * set variables ZIPNAME ZIPFILES
+# * include this make snippet
+
+zip: $(ZIPFILES)
+ zip -r $(ZIPNAME).zip $^
+
+.PHONY: zip