# Generated automatically from Makefile.in by configure.
#
# Makefile for Documentation/ subdir 
#
# ---------------------------------------------------------------------
prefix = /tmp/ecasound-build/usr/local
mandir = $(prefix)/man
PACKAGE = ecasound
VERSION = 1.5.12r6   
#distdir = ../$(PACKAGE)-$(VERSION)
#top_distdir = $(distdir)
# ---------------------------------------------------------------------
# Files going into distribution:
DISTFILES = Makefile.in ecasound.1 qtecasound.1 \
	    ecasound_manpage.man qtecasound_manpage.man \
	    ecasound_manpage.html qtecasound_manpage.html \
	    ecasoundrc_manpage.man ecasoundrc_manpage.html \
	    ecatools_manpage.man ecatools_manpage.html \
	    ecatools.1 ecatools_manpage.yo \
            ecasoundrc.5 ecasound_faq.txt ecasound_faq.html \
	    ecasound_manpage.yo qtecasound_manpage.yo \
	    ecasoundrc_manpage.yo ecasound_faq.yo \
            design.html design.yo \
	    examples.html index.html

# ---------------------------------------------------------------------
all:

distclean:

docs: ecasound.1 qtecasound.1 ecasound_manpage.html qtecasound_manpage.html \
      ecasoundrc_manpage.html ecasoundrc.5 ecasound_faq.txt \
      ecatools.1 ecatools_manpage.man ecatools_manpage.html \
      ecasound_faq.html design.html

# ---------------------------------------------------------------------
# Man pages

ecasound.1: ecasound_manpage.man
	groff -man -Tascii ecasound_manpage.man >ecasound.1
ecatools.1: ecatools_manpage.man
	groff -man -Tascii ecatools_manpage.man >ecatools.1
qtecasound.1: qtecasound_manpage.man
	groff -man -Tascii qtecasound_manpage.man >qtecasound.1
ecasoundrc.5: ecasoundrc_manpage.man
	groff -man -Tascii ecasoundrc_manpage.man >ecasoundrc.5

ecasound_manpage.man: ecasound_manpage.yo
	yodl2man ecasound_manpage.yo
ecatools_manpage.man: ecatools_manpage.yo
	yodl2man ecatools_manpage.yo
qtecasound_manpage.man: qtecasound_manpage.yo
	yodl2man qtecasound_manpage.yo
ecasoundrc_manpage.man: ecasoundrc_manpage.yo
	yodl2man ecasoundrc_manpage.yo

ecasound_manpage.html: ecasound_manpage.yo
	yodl2html ecasound_manpage.yo
ecatools_manpage.html: ecatools_manpage.yo
	yodl2html ecatools_manpage.yo
qtecasound_manpage.html: qtecasound_manpage.yo
	yodl2html qtecasound_manpage.yo
ecasoundrc_manpage.html: ecasoundrc_manpage.yo
	yodl2html ecasoundrc_manpage.yo

# ---------------------------------------------------------------------
# FAQ, design
ecasound_faq.txt: ecasound_faq.yo
	yodl2txt ecasound_faq.yo
ecasound_faq.html: ecasound_faq.yo
	yodl2html ecasound_faq.yo

design.html: design.yo
	yodl2html design.yo

# ---------------------------------------------------------------------
# kdoc creation ..
kdoc:
	cd ../kvutils ; \
	 kdoc -u \
	 "http://www.wakkanet.fi/~kaiv/ecasound/Documentation/libkvutils/" \
	 -d ../Documentation/libkvutils/ \
	 -n libkvutils \
	 -L ../Documentation/ *.h
	cd ../libecasound/include ; \
	 kdoc --html -u "http://localhost/ecasound/Documentation/libecasound/"\
	 -d ../../Documentation/libecasound/ -n libecasound \
	 -L ../../Documentation/ *.h
	cd ../ecasound ; \
	 kdoc --html -u \
	 "http://www.wakkanet.fi/~kaiv/ecasound/Documentation/ecasound/" \
	 -d ../Documentation/ecasound/ \
	 -L ../Documentation/ *.h *.cpp -llibecasound
	cd ../qtecasound ; \
	 kdoc --html -u \
	 "http://www.wakkanet.fi/~kaiv/ecasound/Documentation/qtecasound/" \
	 -d ../Documentation/qtecasound/ \
	 -L ../Documentation/ *.h -llibecasound -lqt
	cd ../Documentation/qtecasound ; \
	 qt2kdoc -o . /usr/local/qt/doc/
	cd ../ecatools ; \
	 kdoc --html -u \
	 "http://www.wakkanet.fi/~kaiv/ecasound/Documentation/ecatools/" \
	 -d ../Documentation/ecatools/ \
	 -L ../Documentation/ *.h *.cpp -llibecasound

# ---------------------------------------------------------------------
# Clean targets
clean:
clean-docs:
	rm -f ecasound.1 qtecasound.1 \
	      ecasound_manpage.html qtecasound_manpage.html \
	      ecasound_manpage.man qtecasound_manpage.man \
	      ecatools_manpage.man ecatools.1 \
	      ecatools_manpage.html \
	      ecasoundrc_manpage.man ecasoundrc_manpage.html \
	      ecasoundrc.5 design.html


# ---------------------------------------------------------------------
# Install targets
install:
	mkdir -p $(mandir)/man1
	mkdir -p $(mandir)/man5
	cp ecasound.1 $(mandir)/man1
	cp qtecasound.1 $(mandir)/man1
	cp ecatools.1 $(mandir)/man1
	cp ecasoundrc.5 $(mandir)/man5
	cp ecasound_faq.txt ../$(topdir)/FAQ

# ---------------------------------------------------------------------
# Distdir
distdir: $(DISTFILES)
	distdir=`cd $(distdir) && pwd`; \
	cp $(DISTFILES) $(distdir)
#	echo Distdir: $(distdir) ...
















