From 5ae3e48cdba0a464b2710dcc8908d96be4002a63 Mon Sep 17 00:00:00 2001 From: Cary R Date: Tue, 14 Sep 2010 16:35:27 -0700 Subject: [PATCH] Fix generation of PS files and hence PDF files on cygwin. The Cygwin man command requires that you have a / in the path if you want to avoid looking at the normal search path. This patch addes ./ before the manual page file name. Which should work on any system. It also makes the vvp generation create a PS file like is done in the other Makefiles. By default we generate normal manual pages. You can then create PostScript version and from these you can generate a PDF version. --- Makefile.in | 2 +- driver/Makefile.in | 2 +- vvp/Makefile.in | 9 ++++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile.in b/Makefile.in index 2614e374c..7a9f120cc 100644 --- a/Makefile.in +++ b/Makefile.in @@ -240,7 +240,7 @@ iverilog-vpi.man: $(srcdir)/iverilog-vpi.man.in version.exe tail -n +2 $(srcdir)/iverilog-vpi.man.in >> $@ iverilog-vpi.ps: iverilog-vpi.man - $(MAN) -t iverilog-vpi.man > iverilog-vpi.ps + $(MAN) -t ./iverilog-vpi.man > iverilog-vpi.ps iverilog-vpi.pdf: iverilog-vpi.ps $(PS2PDF) iverilog-vpi.ps iverilog-vpi.pdf diff --git a/driver/Makefile.in b/driver/Makefile.in index 054c0b1ac..26d6346b7 100644 --- a/driver/Makefile.in +++ b/driver/Makefile.in @@ -89,7 +89,7 @@ iverilog.man: $(srcdir)/iverilog.man.in ../version.exe tail -n +2 $(srcdir)/iverilog.man.in >> $@ iverilog.ps: iverilog.man - $(MAN) -t iverilog.man > iverilog.ps + $(MAN) -t ./iverilog.man > iverilog.ps iverilog.pdf: iverilog.ps $(PS2PDF) iverilog.ps iverilog.pdf diff --git a/vvp/Makefile.in b/vvp/Makefile.in index bf55273c1..b68832fdb 100644 --- a/vvp/Makefile.in +++ b/vvp/Makefile.in @@ -59,7 +59,7 @@ all: dep vvp@EXEEXT@ libvpi.a vvp.man clean: rm -f *.o *~ parse.cc parse.h lexor.cc tables.cc - rm -rf dep vvp@EXEEXT@ libvpi.a parse.output vvp.man vvp.pdf vvp.exp + rm -rf dep vvp@EXEEXT@ libvpi.a parse.output vvp.man vvp.ps vvp.pdf vvp.exp distclean: clean rm -f Makefile config.log @@ -152,8 +152,11 @@ vvp.man: $(srcdir)/vvp.man.in ../version.exe ../version.exe `head -1 $(srcdir)/vvp.man.in`'\n' > $@ tail -n +2 $(srcdir)/vvp.man.in >> $@ -vvp.pdf: vvp.man - $(MAN) -t $(srcdir)/vvp.man | $(PS2PDF) - vvp.pdf +vvp.ps: vvp.man + $(MAN) -t ./vvp.man > vvp.ps + +vvp.pdf: vvp.ps + $(PS2PDF) vvp.ps vvp.pdf ifeq (@MINGW32@,yes) ifeq ($(MAN),none)