include ../Makefile.inc LANGS=C fr de it es sv ja LANGHTML=$(patsubst %,%-text,$(LANGS)) all: @echo "nothing to do" %-text: mkdir -p $*-html; \ cd $*-html; \ rm *.html; \ if [ "$*" = "ja" ]; then \ SP_BCTF=ujis jade -t sgml -ihtml -d ../dave-html.dsl ../text-help-$*.sgml; \ else \ jade -t sgml -ihtml -d ../dave-html.dsl ../text-help-$*.sgml; \ fi; \ cd -; \ mkdir -p $*; \ cd $*; \ for page in ../$*-html/*.html; do \ if [ "$*" = "ja" ]; then \ LANG=ja_JP.eucJP lynx -dump -width=60 -nolist $$page | tail +4 > `basename $$page .html`.txt; \ else \ lynx -dump -width=60 -nolist $$page | tail +4 > `basename $$page .html`.txt; \ fi; \ done; \ cd -; \ rm -rf $*-html text: $(LANGHTML) install: mkdir -p $(DESTDIR)/$(ANACONDADATADIR)/help for I in $(LANGS); do \ mkdir -p $(DESTDIR)/$(ANACONDADATADIR)/help/$$I; \ install $$I/*.txt $(DESTDIR)/$(ANACONDADATADIR)/help/$$I; \ done depend: