From: Brian Norris <banorris@uci.edu>
Date: Wed, 10 Oct 2012 23:01:30 +0000 (-0700)
Subject: Makefile: add benchmarks to top-level
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b2079b62d3578a75e342c012716aa214e3228d42;p=cdsspec-compiler.git

Makefile: add benchmarks to top-level
---

diff --git a/Makefile b/Makefile
index d530fee..764b8ab 100644
--- a/Makefile
+++ b/Makefile
@@ -61,4 +61,16 @@ PHONY += tests
 tests: $(LIB_SO)
 	$(MAKE) -C $(TESTS_DIR)
 
+BENCHMARKS := benchmarks
+
+PHONY += benchmarks
+benchmarks: $(LIB_SO)
+	@if ! test -d $(BENCHMARKS); then \
+		echo "Directory $(BENCHMARKS) does not exist" && \
+		echo "Please clone the benchmarks repository" && \
+		echo && \
+		exit 1; \
+	fi
+	$(MAKE) -C $(BENCHMARKS)
+
 .PHONY: $(PHONY)