include ../Makefile.inc

LANGS=ja C

LANGHTML=$(patsubst %,%-html,$(LANGS))

all:
	@echo "nothing to do"

%-html:
	mkdir -p $*; \
	cd $*;       \
	rm *.html;   \
        if [ "$*" = "ja" ]; then \
            SP_BCTF=ujis jade -t sgml -ihtml -d ../dave-html-ja.dsl ../help-screens-$*.sgml; \
	    for I in *html; do \
                sed -e 's,<H1,<H3><B,g' -e 's,</H1,</B></H3,g' < $$I > $$I- ; \
	        mv -f $$I- $$I; \
            done; \
        else         \
            jade -t sgml -ihtml -d ../dave-html.dsl ../help-screens-$*.sgml; \
        fi;          \
	cd -;

html: $(LANGHTML)

install:
	mkdir -p $(DESTDIR)/$(ANACONDADATADIR)/help
	for I in $(LANGS); do \
            mkdir -p $(DESTDIR)/$(ANACONDADATADIR)/help/$$I; \
	    install $$I/*.html $(DESTDIR)/$(ANACONDADATADIR)/help/$$I; \
        done

depend:

clean:
