Convert .ext to .ptxt instead of .ext.ptext thus allowing incremental build. - tgtimes - The Gopher Times
(HTM) git clone git://bitreich.org/tgtimes git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/tgtimes
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 7721821497944e8412140478d72d9d0204e21df6
(DIR) parent 3f45fceee6067b32c58ffa2aa0ae659847ee6002
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Thu, 10 Aug 2023 10:33:24 +0200
Convert .ext to .ptxt instead of .ext.ptext thus allowing incremental build.
Diffstat:
M Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
@@ -15,7 +15,7 @@ mdptxtfiles=${mdfiles:.md=.ptxt}
| ./filters/markdown.filter \
| fold -s \
| ./filters/boxquote.filter \
- > $<.ptxt
+ > $@
txtfiles=$(filter-out ${tgtimes}.txt, $(wildcard opus${v}/*.txt))
txtptxtfiles=${txtfiles:.txt=.ptxt}
@@ -23,12 +23,12 @@ txtptxtfiles=${txtfiles:.txt=.ptxt}
cat $< \
| fold -s \
| ./filters/boxquote.filter \
- > $<.ptxt
+ > $@
rawfiles=$(wildcard opus${v}/*.raw)
rawptxtfiles=${rawfiles:.raw=.ptxt}
.raw.ptxt:
- cat $< > $<.ptxt
+ cat $< > $@
${tgtimes}.txt: ${mdptxtfiles} ${txtptxtfiles} ${rawptxtfiles}