# WML files and the HTML files generated from them.
ROOT := .
OPIS := $(ROOT)/opiskeluymparisto
TIETOV := $(ROOT)/tietoverkot
#WMLFILES := $(ROOT)/*.wml $(LUENNOT)/*.wml $(DEMOT)/*.wml $(LUENNOT)/luento*/*.wml $(DEMOT)/demo*/*.wml $(ROOT)/linkit/*.wml $(ROOT)/harkka/*.wml
WMLFILES := $(OPIS)/*.wml $(OPIS)/luennot/*.wml $(OPIS)/demot/*.wml $(OPIS)/harkka/*.wml $(OPIS)/linkit/*.wml $(OPIS)/luennot/luento*/*.wml $(OPIS)/demot/demo*/*.wml $(TIETOV)/*.wml $(TIETOV)/luennot/*.wml $(TIETOV)/demot/*.wml $(TIETOV)/harkka/*.wml $(TIETOV)/linkit/*.wml $(TIETOV)/luennot/luento*/*.wml $(TIETOV)/demot/demo*/*.wml
HTMLFILES := $(WMLFILES:.wml=.html)
#INSTALL := install
WML := wml
WMLOPTIONS = -W 2,--expansion=3183
#.PHONY: html
html: $(HTMLFILES)
%.html: %.wml pohja.wmltmpl index.wmltmpl linkit.wml linkitetu.wml
# $(WML) $(WMLOPTIONS) -s $< -o $@ -E tidy
$(WML) $(WMLOPTIONS) -s $< -o $@
gzip -c $@ > $(@:.html=.gz.html)