summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2014-12-31 17:01:13 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2014-12-31 17:14:01 +0100
commite8a994cddc17eabaa415c73d970205aa489a756c (patch)
treeeb3e9f177bd4f9bbcc15deabc9c764e421c59972 /Makefile
parentfc9c8eed3d1b7f7608b8451c53b214e502f1b8f1 (diff)
Recreate scanners.c only on demand
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e0679e5..e00107a 100644
--- a/Makefile
+++ b/Makefile
@@ -85,6 +85,11 @@ $(SRCDIR)/html_unescape.h: $(SRCDIR)/html_unescape.gperf
$(SRCDIR)/case_fold_switch.inc: $(DATADIR)/CaseFolding-3.2.0.txt
perl mkcasefold.pl < $< > $@
+# We include scanners.c in the repository, so this shouldn't
+# normally need to be generated.
+$(SRCDIR)/scanners.c: $(SRCDIR)/scanners.re
+ re2c --case-insensitive -b -i --no-generation-date -o $@ $<
+
test: $(SPEC) $(BUILDDIR)
make -C $(BUILDDIR) test ARGS="-V"