Makefile: add benchmarks to top-level
authorBrian Norris <banorris@uci.edu>
Wed, 10 Oct 2012 23:01:30 +0000 (16:01 -0700)
committerBrian Norris <banorris@uci.edu>
Wed, 10 Oct 2012 23:12:57 +0000 (16:12 -0700)
Makefile

index d530fee70ca50bb1702c7c098c565c6cdf28edb9..764b8abf1bd2050641b498b06736f8990ca14ad3 100644 (file)
--- 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)