diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-11-12 17:16:22 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-11-12 17:16:22 -0500 |
commit | 529f40fc3f0f5f4cc7726be8f59e28e0da161e49 (patch) | |
tree | 422bfc90d9291f06640d0b2d89b352985bc79dd5 | |
parent | 2afbbde4cb6aab900cdf41a27da126ccbc361e52 (diff) | |
download | dimension-529f40fc3f0f5f4cc7726be8f59e28e0da161e49.tar.xz |
Improve PGO build a bit.
-rw-r--r-- | Makefile.am | 14 |
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 |