summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNiklas Olmes <niklas@olmes.de>2026-04-24 19:30:00 +0200
committerNiklas Olmes <niklas@olmes.de>2026-04-24 19:30:00 +0200
commitcdea8caa5617f0cb77bcbc9803759abd2df50644 (patch)
tree2f7f1bd3af3b2396baf5403ad1a7ad00bcb7fae9 /Makefile
stipcrmHEADmain
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..bc545b7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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