Introduction
Introduction Statistics Contact Development Disclaimer Help
Add filtering of all file types prototyping in makefile. - tgtimes - The Gopher…
git clone git://bitreich.org/tgtimes git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws…
Log
Files
Refs
Tags
README
---
commit 37d1188200d838b65157ab445952bac8eb0891b7
parent 2cc01a23c9b1dfa0d1cd90606933b7aae45bcbff
Author: Christoph Lohmann <[email protected]>
Date: Sun, 25 Jun 2023 14:50:09 +0200
Add filtering of all file types prototyping in makefile.
Diffstat:
M Makefile | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
---
diff --git a/Makefile b/Makefile
@@ -3,26 +3,31 @@ include opus
date=$$(date +%Y-%m-%d)
tgtimes=opus$v/tgtimes$v
-.SUFFIXES: .txt .md .ps .pdf
+.SUFFIXES: .txt .md .ps .pdf .ptxt
all: ${tgtimes}.pdf
# Mdfile conversation.
mdfiles=$(wildcard opus${v}/*.md)
-txtfiles=${mdfiles:.md=.txt}
+mdptxtfiles=${mdfiles:.md=.ptxt}
+.md.ptxt:
+ cat $< > $<.ptxt
-.md.txt:
- cat $< > $<.txt
+txtfiles=$(wildcard opus${v}/*.txt)
+txtptxtfiles=${txtfiles:.txt=.ptxt}
+.txt.ptxt:
+ cat $< > $<.ptxt
+
+${tgtimes}.txt: ${mdptxtfiles} ${txtptxtfiles}
+ cat opus${v}/?-*.ptxt > ${tgtimes}.txt
-${tgtimes}.txt: ${txtfiles}
- cat opus${v}/?-*.txt > ${tgtimes}.txt
${tgtimes}.pdf: ${tgtimes}.txt
u2ps ${tgtimes}.txt ${tgtimes}.ps
9 ps2pdf ${tgtimes}.ps ${tgtimes}.pdf
clean:
- rm -f ${tgtimes}.pdf ${tgtimes}.txt
+ rm -f ${tgtimes}.pdf ${tgtimes}.txt *.ptxt
publish: ${tgtimes}.pdf ${tgtimes}.txt
mkdir -p archive/${date}
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.