aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-09-04 01:34:51 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-09-04 01:34:51 -0700
commit023b8aadc69f1d84f5b6b275c9f60dd84ce00e27 (patch)
tree7788e2d7d4b3432cf5cbd04b19624f48c84df7ce /Makefile
parent5c4ea37554c471a8b9f00c27be3417253bcc1cde (diff)
parente738455531f62c5eb40c91838a129d3249b93b86 (diff)
Merge pull request #37 from asgh/patch-1
Don't leave empty file if re2c is missing
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ee3c204..c0cf96b 100644
--- a/Makefile
+++ b/Makefile
@@ -45,7 +45,7 @@ $(PROG): $(SRCDIR)/main.c $(SRCDIR)/inlines.o $(SRCDIR)/blocks.o $(SRCDIR)/detab
$(CC) $(LDFLAGS) -o $@ $^
$(SRCDIR)/scanners.c: $(SRCDIR)/scanners.re
- re2c --case-insensitive -bis $< > $@
+ re2c --case-insensitive -bis $< > $@ || (rm $@ && false)
$(SRCDIR)/case_fold_switch.c: $(DATADIR)/CaseFolding-3.2.0.txt
perl mkcasefold.pl < $< > $@