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

html: pc104-howto.html

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

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

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

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

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

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