
# To generate the html format in a one only file

%.htm :: ../Sgml/%.sgml
	sgml2html \
		--dosnames \
		--imagebuttons \
		--charset=latin \
		--split=0 \
		$<

# To generate the html format with a table of content

%.html :: ../Sgml/%.sgml
	sgml2html \
		--imagebuttons \
		--charset=latin \
		$<

# To generate ascii format lynx is better than sgmltools

%.txt  ::  ../Sgml/%.sgml
	cp $< tmp.sgml;\
	sgml2html \
		-s 0 \
		--charset=latin \
		tmp;\
	lynx -dump tmp.html > $@;\
	rm tmp.html tmp.sgml


%.dvi :: ../Sgml/%.sgml
	sgml2latex  \
		--charset=latin \
		--papersize=a4 \
		$<

%.rtf: ../Sgml/%.sgml
	sgml2rtf  \
		--charset=latin \
		$<

%.ps ::  ../Sgml/%.sgml  ../Dvi ../Dvi/%.dvi
	cd ../Dvi;\
	make $(notdir $(patsubst %.sgml,%.dvi, $<))
	dvips -t a4 -f < ../Dvi/$(notdir $(patsubst %.sgml,%.dvi, $<)) > $@

%.info: ../Sgml/%.sgml
	sgml2info  \
		--charset=latin \
		$<

%.lyx: ../Sgml/%.sgml
	sgml2lyx  \
		--charset=latin \
		$<

