From d98b351edaecf9aa2efb6dc589e2d616e58cfba9 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 27 Mar 2025 08:37:03 -0300 Subject: Makefile: Use ifok(1) to prevent incomplete files to be used in subsequent calls to make(1) --- Makefile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index d85fce3..e1df62d 100644 --- a/Makefile +++ b/Makefile @@ -28,34 +28,34 @@ LDLIBS = .SUFFIXES: .gz .adoc.conf: - mkwb conf src/global.conf $< > $@ + ifok -o $@ mkwb conf src/global.conf $< .adoc.htmlbody: - mkwb htmlbody $< > $@ + ifok -o $@ mkwb htmlbody $< .htmlbody.html: - mkwb html $< > $@ + ifok -o $@ mkwb html $< .conf.htmlheader: - mkwb html -H $< > $@ + ifok -o $@ mkwb html -H $< .conf.htmlfooter: - mkwb html -F $< > $@ + ifok -o $@ mkwb html -F $< .conf.htmllisting: - mkwb indexbody $< > $@ + ifok -o $@ mkwb indexbody $< .adoc.snippets: - mkwb snippets $< > $@ + ifok -o $@ mkwb snippets $< .conf.indexentry: - mkwb indexentry $< > $@ + ifok -o $@ mkwb indexentry $< .htmlbody.feedentry: - mkwb feedentry $< > $@ + ifok -o $@ mkwb feedentry $< .conf.sortdata: - mkwb sortdata $< > $@ + ifok -o $@ mkwb sortdata $< @@ -145,13 +145,13 @@ $(sources.conf): src/global.conf src/headers.txt src/global.conf: src/base.conf - mkwb conf -G src/base.conf > $@ + ifok -o $@ mkwb conf -G src/base.conf $(listings.html): cat $*.htmlheader $*.htmllisting $*.htmlbody $*.htmlfooter > $@ $(feeds.xml): - mkwb feed src/global.conf $*.xmldeps > $@ + ifok -o $@ mkwb feed src/global.conf $*.xmldeps $(contents.gz): gzip -9fk $* -- cgit v1.2.3