#
# Makefile for the PCM5820 HOWTO
#
# Copyright (C) 2000,2001 Heimo Schn <heimo.schoen@gmx.at>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#


OPT = --charset=latin --language=de --papersize=a4

all: pcm5820-howto.html pcm5820-howto.ps pcm5820-howto.txt pcm5820-howto-html.tgz pcm5820-howto.tgz
        # Verffentlichen der Compilate und Scripts
	cp -v pcm*                ~/public_html/
	cp -v *.gif               ~/public_html/
	scp pcm*                  schoen@elina.htlw16.ac.at:public_html
	scp *.gif                 schoen@elina.htlw16.ac.at:public_html

html: pcm5820-howto.html

pcm5820-howto.html: pcm5820-howto.sgml
	sgml2html --language=deutsch -s 1  ${OPT} --imagebuttons pcm5820-howto.sgml

pcm5820-howto.ps: pcm5820-howto.sgml
	sgml2latex  --language=deutsch --output=ps  ${OPT} pcm5820-howto.sgml
	sgml2latex  --language=deutsch --output=dvi ${OPT} pcm5820-howto.sgml
	sgml2latex  --language=deutsch --output=tex ${OPT} pcm5820-howto.sgml
	rm -f texput.log 

pcm5820-howto.txt: pcm5820-howto.sgml
	sgml2txt --language=deutsch pcm5820-howto.sgml

pcm5820-howto.tgz: pcm5820-howto.sgml
	tar cvzf pcm5820-howto.tgz pcm5820-howto.sgml next.gif prev.gif toc.gif Makefile

pcm5820-howto-html.tgz: pcm5820-howto.sgml
	tar cvzf pcm5820-howto-html.tgz *.html *.gif

clean:
	rm -f pcm5820-howto*.html pcm5820-howto.ps pcm5820-howto.dvi pcm5820-howto.tex pcm5820-howto.txt pcm5820-howto.tgz pcm5820-howto-html.tgz texput.log 
