#Makefile for documentations of Smart Boot Manager 3.0

DOCDIR=/usr/doc/btmgr-3.0
USERGUIDE=user-guide
SGML=${USERGUIDE}.sgml
HTML=${USERGUIDE}*.html
PS=${USERGUIDE}.ps
TXT=${USERGUIDE}.txt
INFO=${USERGUIDE}*.info
DVI=${USERGUIDE}.dvi

all: ${HTML} ${PS} ${TXT} ${INFO} 

${HTML}: ${SGML}
	sgml2html $<

${PS}: ${SGML}
	sgml2latex --output=ps $<

${TXT}: ${SGML}
	sgml2txt --filter $<

${INFO}: ${SGML}
	sgml2info $<

install_linux: all
	@mkdir ${DOCDIR}
	@cp ${USERGUIDE}* ../COPYING ${DOCDIR}

install_dos:
	@echo Installation of Documentations under DOS is not available.

.PHONY: clean
clean:
	@rm -f *.bak *~ core *.ps *.html *.info *.txt
