# Extended Module Player docs/Makefile

DOCS	= xmp.1 xmp.html
HTMLS	= changes.html bugs.html
MAKEFAQ	= ../scripts/makefaq
DFILES	= COPYING changes.txt FAQ.faq FAQ.html FAQ.txt Makefile \
	  bugs.txt xmp.1 xxmp.1 xmp.html xmp.yo
DDIRS	=
CFILES	=
DCFILES	=

all: docs

subdist:: docs html

include ../Makefile.rules

docs: $(DOCS) faq

html: $(HTMLS)

install:: docs
	@echo Installing manpages in $(MAN_DIR)...
	@[ -d $(MAN_DIR) ] || mkdir -p $(MAN_DIR)
	$(INSTALL) -m644 xmp.1 $(MAN_DIR)
	@if test "$(X_XMP)x" = xxmpx; then \
	    $(INSTALL) -m644 $(X_XMP).1 $(MAN_DIR); \
	fi

xmp.1 xmp.html: xmp.yo

faq: FAQ.txt

FAQ.txt: FAQ.faq $(MAKEFAQ)

