add a POSIX Makefile - tgtimes - The Gopher Times | |
git clone git://bitreich.org/tgtimes git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 007ac56c335000e2d53de7fed138f0904473bbc6 | |
parent fe9d644958aeb56e630f626d849734cb3a841b32 | |
Author: glenda <[email protected]> | |
Date: Thu, 21 Oct 2021 23:56:17 +0000 | |
add a POSIX Makefile | |
Diffstat: | |
A Makefile | 25 +++++++++++++++++++++++++ | |
M tmac/tmac.w | 6 +++++- | |
2 files changed, 30 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/Makefile b/Makefile | |
@@ -0,0 +1,25 @@ | |
+date=$$(date +%Y-%m-%d) | |
+base=new/the-gopher-times | |
+ps='<< /PageSize [287 500] >> setpagedevice' | |
+ | |
+.SUFFIXES: .mw .txt .ps .pdf | |
+ | |
+.mw.txt: | |
+ nroff -mw $< | col -xb >$@ | |
+ | |
+.mw.ps: | |
+ troff -Mtmac -mw $< | dpost -P ${ps} >$@ | |
+ | |
+.ps.pdf: | |
+ exec ps2pdf $< >$@ | |
+ | |
+ | |
+all: ${base}.pdf ${base}.txt | |
+ | |
+publish: | |
+ mv new ${date} | |
+ mkdir -p new | |
+ touch ${base}.mw | |
+ | |
+clean: | |
+ exec rm -f new/*.{ps,pdf,txt} | |
diff --git a/tmac/tmac.w b/tmac/tmac.w | |
@@ -125,7 +125,7 @@ | |
>> | |
.. | |
. | |
-.de LP \"literal formatting paragraph | |
+.de DS \"start literal "display" paragraph | |
. #P 5v | |
. ft 5u | |
. cs 5u | |
@@ -136,6 +136,10 @@ | |
. na | |
.. | |
. | |
+.de DE \"end of literal "display" | |
+. #R | |
+.. | |
+. | |
.de FS \"footnote start | |
. nr $F \\n($Fu+1u | |
[\\n($F] |