#
# Makefile for the DATUS HOWTO
#
# Copyright (C) 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: datus-howto.html datus-howto.ps datus-howto.txt datus-howto-html.tgz datus-howto.tgz
        # Verffentlichen der Compilate und Scripts
	scp datus*               schoen@elina.htlw16.ac.at:public_html
	scp *.gif                 schoen@elina.htlw16.ac.at:public_html
	scp DATUS-HOWTO.html     schoen@elina.htlw16.ac.at:public_html
	scp datus*               pc104-1:/home/heimo/public_html
	scp *.gif                 pc104-1:/home/heimo/public_html
	scp DATUS-HOWTO.html     pc104-1:/home/heimo/public_html

html: datus-howto.html

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

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

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

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

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

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