summaryrefslogtreecommitdiff
path: root/_content/journal/2026/unified_diff/Makefile
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-04-13 19:14:38 +0700
committerShulhan <ms@kilabit.info>2026-04-13 19:14:38 +0700
commit2d3a245cbba808e58699efcce263cc380491f921 (patch)
tree9e52a801972bab3f6523eb0bfe13d2d800519123 /_content/journal/2026/unified_diff/Makefile
parentece7d12c4ed13e7e2b9a5355dc4579afa55f8711 (diff)
downloadkilabit.info-2d3a245cbba808e58699efcce263cc380491f921.tar.xz
journal/2026: new journal "Implementing Unified Diff"
I am writing this journal to understand the format in details while working on the implementations.
Diffstat (limited to '_content/journal/2026/unified_diff/Makefile')
-rw-r--r--_content/journal/2026/unified_diff/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/_content/journal/2026/unified_diff/Makefile b/_content/journal/2026/unified_diff/Makefile
new file mode 100644
index 0000000..47ca454
--- /dev/null
+++ b/_content/journal/2026/unified_diff/Makefile
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: CC-BY-SA-4.0
+// SPDX-FileCopyrightText: 2026 M. Shulhan <ms@kilabit.info>
+
+.PHONY: all
+all: del.uni \
+ multi_del.uni \
+ add.uni \
+ multi_add.uni \
+ mixed.uni
+
+%.uni: %.old %.new
+ -diff -u --label="old" --label="new" $^ > $@
+
+add.uni: del.new del.old
+ -diff -u --label="old" --label="new" $^ > $@
+
+multi_add.uni: multi_del.new multi_del.old
+ -diff -u --label="old" --label="new" $^ > $@