Skip to content

Commit 5892020

Browse files
committed
Merge pull request #1568 from jsquyres/pr/make-symbol-check-only-on-git-clones
Makefile.am: only check for common symbols on dev builds
2 parents 68c1a5e + 62c45e4 commit 5892020

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Makefile.am

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# University of Stuttgart. All rights reserved.
1010
# Copyright (c) 2004-2005 The Regents of the University of California.
1111
# All rights reserved.
12-
# Copyright (c) 2006-2015 Cisco Systems, Inc. All rights reserved.
12+
# Copyright (c) 2006-2016 Cisco Systems, Inc. All rights reserved.
1313
# Copyright (c) 2012-2015 Los Alamos National Security, Inc. All rights reserved.
1414
# Copyright (c) 2014 Intel, Inc. All rights reserved.
1515
# $COPYRIGHT$
@@ -30,10 +30,12 @@ dist-hook:
3030
# Check for common symbols. Use a "-hook" to increase the odds that a
3131
# developer will see it at the end of their installation process.
3232
install-exec-hook:
33-
-@$(top_srcdir)/config/find_common_syms \
34-
--brief \
35-
--top_builddir=$(top_builddir) \
36-
--top_srcdir=$(top_srcdir) \
37-
--objext=$(OBJEXT)
33+
-@if test -d "$(top_srcdir)/.git"; then \
34+
$(top_srcdir)/config/find_common_syms \
35+
--brief \
36+
--top_builddir=$(top_builddir) \
37+
--top_srcdir=$(top_srcdir) \
38+
--objext=$(OBJEXT); \
39+
fi
3840

3941
ACLOCAL_AMFLAGS = -I config

0 commit comments

Comments
 (0)