[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] UTP: release candidate at ffii.org (finally!)
From: |
Ralph Corderoy |
Subject: |
Re: [Groff] UTP: release candidate at ffii.org (finally!) |
Date: |
Mon, 28 Jul 2003 15:17:03 +0100 |
Hi Larry,
> make sure it builds & compiles for you (it does for me), and send
> patches.
`make' works, but it works better with the patch below, e.g. `make;
make' only builds the book once. Also, if it fails I'm not left with
the target because I/O redirection is used. Also, a `clean' target has
been added.
Cheers,
Ralph.
Index: Makefile
===================================================================
RCS file: /var/cvs/utpbook/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- Makefile 28 Jul 2003 01:28:44 -0000 1.1
+++ Makefile 28 Jul 2003 14:15:13 -0000
@@ -15,30 +15,42 @@
ch15.t ch16.t ch17.t ch18.t appa.t appb.t appc.t appd.t appe.t \
appf.t appg.t
-book: toc.t utp_ix.t
- $(GROFF) -step -ms -rRef=0 utp_book.t > utp_book.ps
+utp_book.ps: toc.t utp_ix.t
+ $(GROFF) -step -ms -rRef=0 utp_book.t >address@hidden
+ mv address@hidden $@
+
+clean::
+ rm -f utp_book.ps utp_book.ps.tmp
toc.t: $(CHAPTERS)
- $(GROFF) -step -ms -rRef=1 ix.macro utp_book.t > /dev/null 2>utp.aux
- $(AWK) -f toc.awk utp.aux >toc.t
+ $(GROFF) -step -ms -rRef=1 ix.macro utp_book.t >/dev/null 2>utp.aux.tmp
+ mv utp.aux.tmp utp.aux
+ $(AWK) -f toc.awk utp.aux >address@hidden
+ mv address@hidden $@
+
+clean::
+ rm -f utp.aux.tmp utp.aux toc.t toc.t.tmp
utp_ix.t: $(CHAPTERS)
- cd index; ./make.index ../utp.aux >../utp_ix.t
- cd ..
+ cd index && ./make.index ../utp.aux >../address@hidden
+ mv address@hidden $@
+
+clean::
+ rm -f utp_ix.t utp_ix.t.tmp
#########################################################################
# helpers to maintain single chapters
# make ch03
#########################################################################
+
.SUFFIXES: .t .html .pdf
+
% : %.t
groff -step -ms -rRef=0 $< > x.ps 2>ix.raw
$(VIEW) x.ps
-
%.pdf : %.t
groff -step -ms -rRef=0 $< > x.ps
ps2pdf x.ps
mv x.pdf $@
$(VIEW) x.ps
-