# $Id: Makefile,v 1.3 2007/11/17 02:29:12 s-sugi Exp s-sugi $

DIR = ../../../en/LMM

SAMPLE = sample_Anne_of_Green_Gables.html sample_Anne_of_Avonlea.html sample_Anne_of_the_Island.html sample_Anne_s_House_of_Dreams.html sample_Rilla_of_Ingleside.html sample_Rainbow_Valley.html sample_Chronicles_of_Avonlea.html sample_Further_Chronicles_of_Avonlea.html sample_The_Story_Girl.html sample_The_Golden_Road.html

HTML = Anne_of_Green_Gables.html Anne_of_Avonlea.html Anne_of_the_Island.html Anne_s_House_of_Dreams.html Rilla_of_Ingleside.html Rainbow_Valley.html Chronicles_of_Avonlea.html Further_Chronicles_of_Avonlea.html The_Story_Girl.html The_Golden_Road.html

ZIP = Anne_of_Green_Gables.html.zip Anne_of_Avonlea.html.zip Anne_of_the_Island.html.zip Anne_s_House_of_Dreams.html.zip Rilla_of_Ingleside.html.zip Rainbow_Valley.html.zip Chronicles_of_Avonlea.html.zip Further_Chronicles_of_Avonlea.html.zip The_Story_Girl.html.zip The_Golden_Road.html.zip

TARGET = $(SAMPLE) $(ZIP)

SINGLE = Montgomery_all.zip

GIF_1 = Page_131.gif

GIF_2 = 112.gif 166.gif 211.gif 294.gif 61.gif 7.gif detail-1.gif detail-2.gif

GIF = $(GIF_1) $(GIF_2)

all	:$(TARGET) $(SINGLE) index.html

$(SINGLE)	:$(HTML) $(GIF) Makefile
	rm -f $@ $(DIR)/$@
	zip -j $@ $(HTML) $(GIF) ZIP/index.html
	ln $@ $(DIR)

Anne_of_Green_Gables.html.zip	:Anne_of_Green_Gables.html
	rm -f $@ $(DIR)/$@
	zip $@ $?
	ln $@ $(DIR)

Anne_of_Avonlea.html.zip	:Anne_of_Avonlea.html
	rm -f $@ $(DIR)/$@
	zip $@ $?
	ln $@ $(DIR)

Anne_of_the_Island.html.zip	:Anne_of_the_Island.html
	rm -f $@ $(DIR)/$@
	zip $@ $?
	ln $@ $(DIR)

Anne_s_House_of_Dreams.html.zip	:Anne_s_House_of_Dreams.html
	rm -f $@ $(DIR)/$@
	zip $@ $?
	ln $@ $(DIR)

Rainbow_Valley.html.zip	:Rainbow_Valley.html
	rm -f $@ $(DIR)/$@
	zip $@ $? $(GIF_1)
	ln $@ $(DIR)

Rilla_of_Ingleside.html.zip	:Rilla_of_Ingleside.html
	rm -f $@ $(DIR)/$@
	zip $@ $?
	ln $@ $(DIR)

Chronicles_of_Avonlea.html.zip	:Chronicles_of_Avonlea.html
	rm -f $@ $(DIR)/$@
	zip $@ $?
	ln $@ $(DIR)

Further_Chronicles_of_Avonlea.html.zip	:Further_Chronicles_of_Avonlea.html
	rm -f $@ $(DIR)/$@
	zip $@ $? $(GIF_2)
	ln $@ $(DIR)

The_Story_Girl.html.zip	:The_Story_Girl.html
	rm -f $@ $(DIR)/$@
	zip $@ $?
	ln $@ $(DIR)

The_Golden_Road.html.zip	:The_Golden_Road.html
	rm -f $@ $(DIR)/$@
	zip $@ $?
	ln $@ $(DIR)

$(DIR)/sample_Anne_of_Avonlea.html	:sample_Anne_of_Avonlea.html
	rm -f $@
	ln $? $@

$(DIR)/sample_Anne_of_Green_Gables.html	:sample_Anne_of_Green_Gables.html
	rm -f $@
	ln $? $@

$(DIR)/sample_Anne_of_the_Island.html	:sample_Anne_of_the_Island.html
	rm -f $@
	ln $? $@

$(DIR)/sample_Anne_s_House_of_Dreams.html	:sample_Anne_s_House_of_Dreams.html
	rm -f $@
	ln $? $@

$(DIR)/sample_Rainbow_Valley.html	:sample_Rainbow_Valley.html
	rm -f $@
	ln $? $@

$(DIR)/sample_Rilla_of_Ingleside.html	:sample_Rilla_of_Ingleside.html
	rm -f $@
	ln $? $@

$(DIR)/sample_Chronicles_of_Avonlea.html	:sample_Chronicles_of_Avonlea.html
	rm -f $@
	ln $? $@

$(DIR)/sample_Further_Chronicles_of_Avonlea.html	:sample_Further_Chronicles_of_Avonlea.html
	rm -f $@
	ln $? $@

$(DIR)/sample_The_Story_Girl.html	:sample_The_Story_Girl.html
	rm -f $@
	ln $? $@

index.html	:$(ZIP) index.shtml
	lynx -source http://www.sugihara.com/ja/LMM/index.shtml > index.html

clean	:
	rm -f *~
