%.php: %.scm
@echo Creating $@
@(./speakhtml.scm $< > $@ && ( tidy -q --indent yes --wrap 0 --vertical-space no --preserve-entities yes --drop-empty-elements no --drop-empty-paras no --show-body-only yes --warn-proprietary-attributes no --wrap-php no --keep-tabs yes -ashtml -m $@ ; test $$? -lt 2 && true ; ./unwrap-php.sh $@ ) ) || ( rm -f $@ ; false )
SCMFILES = $(wildcard *.scm)
SCMFILES := $(filter-out $(wildcard common.scm php.scm main.scm html4*.scm lang-tags.scm form.scm spinkit.scm speakhtml*.scm),$(SCMFILES))
PHPFILES = $(SCMFILES:.scm=.php)
all: php
rebuild: clean all
php: $(PHPFILES)
phpclean:
rm -f $(PHPFILES)
clean: phpclean