CONTENTS = index.html.en \
index.html.ja.jis
all: $(CONTENTS)
for dir in doc; do \
(cd $$dir && make); \
done
install: all
rm -f *~ .htaccess~
rsync -rLptgoDzv -e ssh --exclude=.svn/ ./ beryllium.ruby-lang.org:/var/www/modruby.net/
sync: all
rm -f *~ .htaccess~
rsync -rLptgoDzv -e ssh --exclude=.svn/ --delete ./ beryllium.ruby-lang.org:/var/www/modruby.net/
clean:
rm -f $(CONTENTS)
rm -f *~ .htaccess~
index.html.ja.jis: index.rd.ja.euc title.html footer.html
ruby -Ke -S rd2 \
-r rd/rd2html-lib \
--out-code=jis --with-css=default.css \
--html-title="modruby.net" \
$< > $@
index.html.en: index.rd.en title.html footer.html
ruby -Kn -S rd2 \
-r rd/rd2html-lib \
--with-css=default.css \
--html-title="modruby.net" \
$< > $@