From 7788b76fe13059aa3610f592e58512cb5f4cdb28 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 4 Apr 2014 08:28:17 -0600 Subject: [PATCH 1/1] Makefile: add doc target to generate PDFs from the man pages Signed-off-by: Jens Axboe --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 231b4abd..3c9e0ee4 100644 --- a/Makefile +++ b/Makefile @@ -277,7 +277,7 @@ clean: FORCE -rm -f .depend $(FIO_OBJS) $(GFIO_OBJS) $(OBJS) $(T_OBJS) $(PROGS) $(T_PROGS) core.* core gfio FIO-VERSION-FILE *.d config-host.mak config-host.h distclean: clean FORCE - @rm -f cscope.out + @rm -f cscope.out fio.pdf fio_generate_plots.pdf fio2gnuplot.pdf cscope: @cscope -b -R @@ -285,6 +285,11 @@ cscope: tools/plot/fio2gnuplot.1: @cat tools/plot/fio2gnuplot.manpage | txt2man -t fio2gnuplot > tools/plot/fio2gnuplot.1 +doc: tools/plot/fio2gnuplot.1 + @man -t ./fio.1 | ps2pdf - fio.pdf + @man -t tools/fio_generate_plots.1 | ps2pdf - fio_generate_plots.pdf + @man -t tools/plot/fio2gnuplot.1 | ps2pdf - fio2gnuplot.pdf + install: $(PROGS) $(SCRIPTS) tools/plot/fio2gnuplot.1 FORCE $(INSTALL) -m 755 -d $(DESTDIR)$(bindir) $(INSTALL) $(PROGS) $(SCRIPTS) $(DESTDIR)$(bindir) -- 2.25.1