#
# $Header: /cvsroot/hungry/lesstif/doc/lessdox/widgets/Makefile.am,v 1.4 1998/05/02 22:31:47 u27113 Exp $
#

MAINTAINERCLEANFILES=Makefile.in
SUFFIXES=	.1 .3 .5 .html

mandir=	$(exec_prefix)/LessTif/doc/man
man1dir=	$(exec_prefix)/LessTif/doc/man/man1
man3dir=	$(exec_prefix)/LessTif/doc/man/man3
man5dir=	$(exec_prefix)/LessTif/doc/man/man5

man1_DATA=	
man3_DATA= \
	XmClipboard.3 LessTifInternals.3 \
	XmArrowButton.3 XmArrowButtonGadget.3 XmBulletinBoard.3 \
	XmCascadeButton.3 XmCascadeButtonGCacheObj.3 XmCascadeButtonGadget.3 \
	XmComboBox.3 XmCommand.3 XmDesktop.3 \
	XmDialogShell.3 XmDialogShellExt.3 XmDisplay.3 \
	XmDragContext.3 XmDragIcon.3 XmDragOverShell.3 \
	XmDrawingArea.3 XmDrawnButton.3 XmDropSiteManager.3 \
	XmDropTransfer.3 XmFileSelectionBox.3 XmForm.3 \
	XmFrame.3 XmGadget.3 XmGrabShell.3 \
	XmIconGCacheObj.3 XmIconGadget.3 XmLabel.3 \
	XmLabelGCacheObj.3 XmLabelGadget.3 XmList.3 \
	XmMainWindow.3 XmManager.3 XmMenuShell.3 \
	XmMessageBox.3 XmNotebook.3 XmPanedWindow.3 \
	XmPrimitive.3 XmProtocol.3 XmPushButton.3 \
	XmPushButtonGCacheObj.3 XmPushButtonGadget.3 XmRowColumn.3 \
	XmSash.3 XmScale.3 XmScreen.3 \
	XmScrollBar.3 XmScrolledWindow.3 XmSelectionBox.3 \
	XmSeparator.3 XmSeparatorGCacheObj.3 XmSeparatorGadget.3 \
	XmSpinBox.3 XmTearOffButton.3 XmText.3 \
	XmTextField.3 XmToggleButton.3 XmToggleButtonGCacheObj.3 \
	XmToggleButtonGadget.3 XmVendorShellExt.3 XmWorld.3
man5_DATA=	

#
# I'm assuming that all those with CVS access (core team) install
# man2html, and that daily extraction process will build the HTML
# files for people with no CVS access.
# As a consequence, if you don't have man2html you should already
# have the HTML files here; and only need to install them, not to
# build them.
#

htmldir=	$(exec_prefix)/LessTif/doc/html
html_DATA=	${man1_DATA:.1=.html} ${man3_DATA:.3=.html}
		${man5_DATA:.5=.html}

if	HaveMan2html

man1_HTML=	${man1_DATA:.1=.html}
man3_HTML=	${man3_DATA:.3=.html}
man5_HTML=	${man5_DATA:.5=.html}

CLEANFILES +=	$(man1_HTML) $(man3_HTML) $(man5_HTML)

.1.html:
	man2html -f <$(srcdir)/$*.1 >$*.html

.3.html:
	man2html -f <$(srcdir)/$*.3 >$*.html

.5.html:
	man2html -f <$(srcdir)/$*.5 >$*.html
endif
