From af334e9f9976f60f0406d62f05c05ef362320010 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Sun, 18 Apr 2004 03:37:28 +0000 Subject: [PATCH] add manhtml target to generate html man pages for copying to the website git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2449 7894878c-1315-0410-8ee3-d5d059ff63e0 --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Makefile b/Makefile index 86354b0d..b0525b06 100644 --- a/Makefile +++ b/Makefile @@ -245,6 +245,10 @@ ifneq ($(MAKECMDGOALS),clean) include $(INCLUDEFILES) endif +# Man pages +MANPAGES := $(LIBMAN3FILES) $(LIBMAN5FILES) $(PROGDETECTMAN8FILES) $(PROGDUMPMAN8FILES) \ + $(PROGSENSORSMAN1FILES) prog/sensord/sensord.8 + # Making the dependency files - done automatically! dep : @@ -317,6 +321,17 @@ $(LINUX)/.config: @echo @exit 1 +# Generate html man pages to be copied to the lm_sensors website. +# This uses the man2html from here +# http://ftp.math.utah.edu/pub/sgml/ +# which works directly from the nroff source +manhtml: + $(MKDIR) html + cp $(MANPAGES) html + cd html ; \ + man2html *.[1-8] ; \ + $(RM) *.[1-8] + # Here, we define all implicit rules we want to use. .SUFFIXES: