# makefile for Laptop Survey
# $Id: Makefile,v 1.1.1.8 2001/11/30 07:05:58 toshi Exp $

all: LTS.txt LTS.jp.txt LTS.html LTS.jp.html index.html index-j.html

index.html: LTS.html
	cat templ/index.head index.out templ/index.tail > index.html

index-j.html: LTS.jp.html
	cat templ/index-j.head index.jp.out templ/index-j.tail > index-j.html

LTS.txt: LTS.esis ./bin/text.pl
	./bin/text.pl e < LTS.esis > LTS.txt

LTS.html: LTS.esis ./bin/html.pl
	./bin/html.pl e LTS.esis > LTS.html

LTS.jp.txt: LTS.esis ./bin/text.pl
#	./bin/text.pl j < LTS.esis > LTS.jp.txt
	./bin/text.pl j < LTS.esis | ./bin/xconv.pl > LTS.jp.txt

LTS.jp.html: LTS.esis ./bin/html.pl
#	./bin/html.pl j LTS.esis > LTS.jp.html
	./bin/html.pl j LTS.esis | ./bin/xconv.pl > LTS.jp.html

LTS.esis: dtd/LTS
	nsgmls dtd/LTS.dtd dtd/LTS | nkf -s > LTS.esis

clean:
	rm -f LTS.esis *~ *.bak *.orig *.out

distclean: clean
	rm -f *.html *.txt
