[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Documentation generation patch
From: |
Tomasz Gajewski |
Subject: |
Documentation generation patch |
Date: |
Sat, 17 Apr 2004 19:55:02 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
Hi all.
This is the patch for two thing that were annoying me for quite long
time when building hurd-l4.
First is that dvips rule printed document directly to a printer (no -o
option).
Second is that documentation did not generate properly when building
not from source directory.
I have tested this on linux. I know that dirname is not portable but
couldn't get rid of it - there is a macro AS_DIRNAME in the autoconf
docs but I couldn't use it successfully.
Regards
Tomasz Gajewski
Index: doc/Makefile.am
===================================================================
RCS file: /cvsroot/hurd/hurd-l4/doc/Makefile.am,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile.am
--- doc/Makefile.am 22 Mar 2004 00:26:50 -0000 1.4
+++ doc/Makefile.am 17 Apr 2004 17:15:40 -0000
@@ -43,15 +43,15 @@ hurd-on-l4.dvi: ${eps_files} ${tex_files
SUFFIXES = .ps .dvi .tex .eps .fig .pdf
.tex.dvi:
- $(LATEX) $< -o $@
+ TEXINPUTS=:`dirname "$<"`: $(LATEX) $< -o $@ ; \
while egrep "^LaTeX Warning:.*Rerun to" \
- `echo $< | sed -e 's/.tex$$/.log/'`; do \
+ `echo $< | sed -e 's/.*\///' -e 's/.tex$$/.log/'`; do \
rm -f $(subst $<,.tex,.log); \
- $(LATEX) $< -o $@; \
+ TEXINPUTS=:`dirname "$<"`: $(LATEX) $< -o $@; \
done
.dvi.ps:
- $(DVIPS) $<
+ $(DVIPS) -o $@ $<
.ps.pdf:
$(PS2PDF) $<
- Documentation generation patch,
Tomasz Gajewski <=