From cdea8caa5617f0cb77bcbc9803759abd2df50644 Mon Sep 17 00:00:00 2001 From: Niklas Olmes Date: Fri, 24 Apr 2026 19:30:00 +0200 Subject: stipcrm --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.3.1