Fix the main documentation PDF not to use mangled character spacing.

This commit is contained in:
David Given 2022-02-03 21:40:49 +01:00
parent 1b972fcd17
commit 06ede2e2f5
2 changed files with 20 additions and 7 deletions

View file

@ -22,8 +22,15 @@ SRCS = \
src/sets.c \ src/sets.c \
src/tokens.c src/tokens.c
DOCS = \
doc/LLgen.n \
doc/LLgen_NCER.n \
OBJS = $(patsubst %.c, $(OBJDIR)/%.o, $(SRCS)) OBJS = $(patsubst %.c, $(OBJDIR)/%.o, $(SRCS))
DEPS = $(patsubst %.c, $(OBJDIR)/%.d, $(SRCS)) DEPS = $(patsubst %.c, $(OBJDIR)/%.d, $(SRCS))
PDFS = $(patsubst doc/%.n, $(OBJDIR)/%.pdf, $(DOCS))
all: LLgen doc
LLgen: $(OBJS) LLgen: $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(CC) $(CFLAGS) -o $@ $(OBJS)
@ -33,16 +40,19 @@ $(OBJDIR)/%.o: %.c
$(CC) $(CFLAGS) -MMD -c -o $@ $< $(CC) $(CFLAGS) -MMD -c -o $@ $<
$(OBJDIR)/%.pdf: doc/%.n doc/LLgen.refs $(OBJDIR)/%.pdf: doc/%.n doc/LLgen.refs
refer -p doc/LLgen.refs $^ | groff -G -e -g -p -ms -Tpdf > $@ @mkdir -p $(dir $@)
groff -R -G -e -g -p -ms -Tpdf $< > $@
doc:: $(PDFS)
clean: clean:
rm -rf $(OBJDIR) rm -rf $(OBJDIR)
install: LLgen doc/LLgen.1 $(OBJDIR)/LLgen.pdf $(OBJDIR)/LLgen_NCER.pdf $(wildcard lib/*) install: LLgen doc/LLgen.1 $(PDFS) $(wildcard lib/*)
install -D -s LLgen -T $(PREFIX)/bin/LLgen install -D -s LLgen -t $(PREFIX)/bin
install -D doc/LLgen.1 -T $(PREFIX)/man/man1/LLgen.1 install -D doc/LLgen.1 -t $(PREFIX)/man/man1
install -D $(OBJDIR)/LLgen.pdf -T $(PREFIX)/doc/LLgen install -D $(OBJDIR)/LLgen.pdf -t $(PREFIX)/doc/LLgen
install -D $(OBJDIR)/LLgen_NCER.pdf -T $(PREFIX)/doc/LLgen install -D $(OBJDIR)/LLgen_NCER.pdf -t $(PREFIX)/doc/LLgen
install -D $(wildcard lib/*) -t $(PREFIX)/share/LLgen install -D $(wildcard lib/*) -t $(PREFIX)/share/LLgen
-include $(DEPS) -include $(DEPS)

View file

@ -9,7 +9,10 @@
. if t .ds <, ,\ . if t .ds <, ,\
\}\ \}\
\} \}
.cs 5 22u .R1
database doc/LLgen.refs
accumulate
.R2
.ND .ND
.EQ .EQ
delim @@ delim @@