summaryrefslogtreecommitdiff
path: root/Makefile
blob: bc545b7854361eba454ec3e20c9b75a70554afda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
%.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