summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-01-24 09:03:16 -0800
committerKaz Kylheku <kaz@kylheku.com>2021-01-24 09:03:16 -0800
commit8f5156f2c9fdc393aba091b30da4c58815bc0eaf (patch)
treeb551ad12bc4368b13b364396c5c8868a0b35e349
parent912c3a22d2da23fcfbc9bb0decbe64b144ff011c (diff)
downloadtxr-8f5156f2c9fdc393aba091b30da4c58815bc0eaf.tar.gz
txr-8f5156f2c9fdc393aba091b30da4c58815bc0eaf.tar.bz2
txr-8f5156f2c9fdc393aba091b30da4c58815bc0eaf.zip
build: add rule for updating .shipped material.
* Makefile (%.shipped): New pattern rule.
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1c67c488..1311dab7 100644
--- a/Makefile
+++ b/Makefile
@@ -296,6 +296,9 @@ y.tab.c: $(top_srcdir)parser.y
false ; \
fi)
+%.shipped: $(top_srcdir)%
+ $(call SH,[ $^ -nt $@ ] && cp $^ $@)
+
else
%: $(top_srcdir)%.shipped