summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-11-12 17:16:22 -0500
committerTavian Barnes <tavianator@gmail.com>2009-11-12 17:16:22 -0500
commit529f40fc3f0f5f4cc7726be8f59e28e0da161e49 (patch)
tree422bfc90d9291f06640d0b2d89b352985bc79dd5 /Makefile.am
parent2afbbde4cb6aab900cdf41a27da126ccbc361e52 (diff)
downloaddimension-529f40fc3f0f5f4cc7726be8f59e28e0da161e49.tar.xz
Improve PGO build a bit.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am14
1 files changed, 8 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index 4746c81..0328b10 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -28,17 +28,19 @@ EXTRA_DIST = autogen.sh
if PGO
all-recursive:
- cd $(top_builddir)/libdimension && $(MAKE) $(AM_MAKEFLAGS) libdimension-pgo.la
- cd $(top_builddir)/tests/libdimension && $(MAKE) check
- @for gcda in $(top_builddir)/tests/libdimension/pgo/.libs/*_pgo*.gcda; do \
- mv $$gcda $${gcda/_pgo/}; \
- done
+ @if ! ls $(top_builddir)/tests/libdimension/pgo/.libs/*.gcda >/dev/null; then \
+ (cd $(top_builddir)/libdimension && $(MAKE) $(AM_MAKEFLAGS) libdimension-pgo.la) && \
+ (cd $(top_builddir)/tests/libdimension && $(MAKE) check) && \
+ for gcda in $$(ls $(top_builddir)/tests/libdimension/pgo/.libs/*_pgo*.gcda); do \
+ mv $$gcda $${gcda/_pgo/}; \
+ done \
+ fi
cd $(top_builddir)/libdimension && $(MAKE) $(AM_MAKEFLAGS) libdimension.la
cd $(top_builddir)/dimension && $(MAKE) $(AM_MAKEFLAGS) all
cd $(top_builddir)/doc && $(MAKE) $(AM_MAKEFLAGS) all
endif
-bench: all-recursive
+bench: all
cd bench && $(MAKE) $(AM_MAKEFLAGS) bench
.PHONY: bench