From 799da32081fffdd896496bd9149c9fe612c410a2 Mon Sep 17 00:00:00 2001 From: asgh Date: Thu, 4 Sep 2014 03:57:17 -0400 Subject: Don't leave empty file if re2c is missing Fixes Issue #35 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ee3c204..8ded96b 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 $@ $(SRCDIR)/case_fold_switch.c: $(DATADIR)/CaseFolding-3.2.0.txt perl mkcasefold.pl < $< > $@ -- cgit v1.2.3 From e738455531f62c5eb40c91838a129d3249b93b86 Mon Sep 17 00:00:00 2001 From: asgh Date: Thu, 4 Sep 2014 04:32:26 -0400 Subject: Better error --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8ded96b..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 $< > $@ || rm $@ + re2c --case-insensitive -bis $< > $@ || (rm $@ && false) $(SRCDIR)/case_fold_switch.c: $(DATADIR)/CaseFolding-3.2.0.txt perl mkcasefold.pl < $< > $@ -- cgit v1.2.3 From 9e05730f36be7a1707751ef0aeeb5d6695007667 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 4 Sep 2014 09:38:21 -0700 Subject: Updated Makefile for #29. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c0cf96b..c1decfc 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ oldtests: make -C oldtests --quiet clean all test: spec.txt - perl runtests.pl $(PROG) $< + perl runtests.pl $< $(PROG) testjs: spec.txt node js/test.js -- cgit v1.2.3