summaryrefslogtreecommitdiff
path: root/build.mk
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-09-12 23:45:11 +0200
committerMarc Vertes <mvertes@free.fr>2025-09-12 23:45:11 +0200
commit8f48ca757d5771f2b299dd68823b113d1dbed67d (patch)
tree925ab50665a44c5471a8c3d83b6356c824733b9d /build.mk
parentb22b851c1483f5e225a768a68b25fce1a5ee3d88 (diff)
Add genpatch target to build.mk. Add nvi2 (works on macos)master
Diffstat (limited to 'build.mk')
-rw-r--r--build.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.mk b/build.mk
index 41b85d9..45b5fea 100644
--- a/build.mk
+++ b/build.mk
@@ -2,7 +2,6 @@
#
# TODO:
# - rules for pre-req dependencies
-# - rules to build patches from .orig
# - rules to run tests before installing
# - build and run in chroot
# - detect inflate command
@@ -42,6 +41,9 @@ debug:
@echo arc = $(arc)
@echo dir = $(dir)
+genpatch:
+ find $(dir) -name *.orig | while read -r f; do diff -u $$f $${f%.orig}; done > $(dir).patch || true
+
uninstall: .install
cd $(dir) && $(uninstall_cmd)
rm .install
@@ -76,3 +78,4 @@ fetch: .fetch
.fetch:
$(fetch_cmd)
@touch $@
+