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: