Changed man page suffix to .man.

Added html target for man pages.
This commit is contained in:
Svend Sorensen
2004-09-21 02:59:17 +00:00
parent 1fcbaf53d4
commit 8aff9c770a
4 changed files with 11 additions and 4 deletions

View File

@@ -3,20 +3,24 @@
INSTALL= install INSTALL= install
INSTALL_PROGRAM= $(INSTALL) INSTALL_PROGRAM= $(INSTALL)
INSTALL_DATA= $(INSTALL) -m 644 INSTALL_DATA= $(INSTALL) -m 644
GROFF= groff
prefix= /usr/local prefix= /usr/local
mandir= $(prefix)/man mandir= $(prefix)/man
DESTDIR= DESTDIR=
TARGETS= cuebreakpoints.1 cueconvert.1 cueprint.1 MANFILES= cuebreakpoints.man cueconvert.man cueprint.man
HTMLFILES= $(MANFILES:.man=.html)
html: $(HTMLFILES)
all: all:
@true @true
install: all install: all
$(INSTALL) -d $(DESTDIR)$(mandir)/man1 $(INSTALL) -d $(DESTDIR)$(mandir)/man1
for i in $(TARGETS) ; do \ for i in $(MANFILES) ; do \
$(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/man1/$$i ; \ $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/man1/`basename $$i .man`.1 ; \
done done
uninstall: uninstall:
@@ -25,4 +29,7 @@ uninstall:
done done
clean: clean:
@true rm -f *.html
%.html: %.man
${GROFF} -man -T html $< > $@