
include install.conf

DEPENDS=install.conf

all: install.conf keywords.py
	LANG=ja_JP.UTF-8 python gnews.py

install: install.conf
	rsync -av css/ $(INSTALL_DIR)/css
	rsync -av js/ $(INSTALL_DIR)/js
	rsync -av img/ $(INSTALL_DIR)/img

keywords.py: keywords.txt
	python genkeywords.py < $< > $@

clean:
	rm -f $(INSTALL_DIR)/*.html
	rm -rf $(INSTALL_DIR)/tag/*
