From 01d978cc22750aa86dadffff4d2414be6fa6f800 Mon Sep 17 00:00:00 2001 From: David Given Date: Sat, 5 Feb 2022 22:48:14 +0100 Subject: [PATCH] Fix the groff build to put the images in the right place. --- util/LLgen/Makefile | 4 ++-- util/LLgen/doc/LLgen.n | 1 - util/LLgen/doc/LLgen_NCER.n | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/util/LLgen/Makefile b/util/LLgen/Makefile index e3f39deed..89250c276 100644 --- a/util/LLgen/Makefile +++ b/util/LLgen/Makefile @@ -42,11 +42,11 @@ $(OBJDIR)/%.o: %.c $(OBJDIR)/%.pdf: doc/%.n doc/LLgen.refs @mkdir -p $(dir $@) - refer $< | groff -G -e -g -p -ms -Tpdf $< > $@ + refer -p doc/LLgen.refs $< | groff -G -e -g -p -ms -Tpdf $< > $@ $(OBJDIR)/%/index.html: doc/%.n doc/LLgen.refs @mkdir -p $(dir $@) - refer $< | (cd $(dir $@) && groff -I$(PWD) -G -e -g -p -ms -Thtml) > $@ + (cd $(dir $@) && refer -p $(PWD)/doc/LLgen.refs | groff -G -e -g -p -ms -Thtml) < $< > $@ doc:: $(PDFS) $(HTMLS) diff --git a/util/LLgen/doc/LLgen.n b/util/LLgen/doc/LLgen.n index 2cd6bf992..2120aa685 100644 --- a/util/LLgen/doc/LLgen.n +++ b/util/LLgen/doc/LLgen.n @@ -10,7 +10,6 @@ \}\ \} .R1 -database doc/LLgen.refs accumulate .R2 .ND diff --git a/util/LLgen/doc/LLgen_NCER.n b/util/LLgen/doc/LLgen_NCER.n index 3693a1525..2275ddd3d 100644 --- a/util/LLgen/doc/LLgen_NCER.n +++ b/util/LLgen/doc/LLgen_NCER.n @@ -1,4 +1,3 @@ -.RP .TL