From 228f7b47f7d97c7aa4ce8b072f3575226ec294ce Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 21 Mar 2016 19:58:28 -0300 Subject: [PATCH] Makefile (man): generate and display the man page --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 131e58d..067eadf 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ # # Makefile - Makefile of fped, the footprint editor # -# Written 2009-2012 by Werner Almesberger -# Copyright 2009-2012 by Werner Almesberger +# Written 2009-2012, 2015 by Werner Almesberger +# Copyright 2009-2012, 2015 by Werner Almesberger # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -90,7 +90,7 @@ endif # ----- Rules ----------------------------------------------------------------- .PHONY: all dep depend clean spotless -.PHONY: install uninstall manual upload-manual +.PHONY: install uninstall manual upload-manual man .PHONY: montage test tests valgrind .SUFFIXES: .fig .xpm .ppm @@ -151,6 +151,12 @@ upload-manual: manual scp $(XPMS:%.xpm=manual/%.png) $(PNGS:%=manual/%) \ $(UPLOAD)/manual/ +# ---- Format the man page ---------------------------------------------------- + +man: + # less is for converting overstriking to bold + groff -Tascii -mandoc fped.1 | less + # ----- Debugging help -------------------------------------------------------- montage: