Skip to content

Commit 86b8105

Browse files
committed
Merge pull request open-mpi#578 from igor-ivanov/pr/oshmem-headers-v2.x
Do not install oshmem header,man,help files in case --disable-oshmem
2 parents 7f86cd2 + 4d416ee commit 86b8105

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

oshmem/include/Makefile.am

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2013 Mellanox Technologies, Inc.
1+
# Copyright (c) 2013-2015 Mellanox Technologies, Inc.
22
# All rights reserved.
33
# $COPYRIGHT$
44
#
@@ -11,21 +11,20 @@
1111
headers = oshmem_config.h
1212
nodist_headers =
1313

14+
if PROJECT_OSHMEM
1415
# Install these in $(includedir)
1516
include_HEADERS =
1617

17-
# Install these in $(includedir)
18-
mppincludedir = $(includedir)/mpp
19-
mppinclude_HEADERS = mpp/shmem.h \
20-
mpp/shmem.fh
21-
2218
# Always install these in $(pkgincludedir)
2319
pkginclude_HEADERS =
2420

2521
include_HEADERS += shmem.fh \
2622
shmemx.h \
2723
shmem-compat.h
2824

25+
nobase_include_HEADERS = mpp/shmem.h \
26+
mpp/shmem.fh
27+
2928
# These files are always installed in $(includedir), but shouldn't be
3029
# shipped since they are generated by configure from their .in
3130
# counterparts (which AM automatically ships).
@@ -36,8 +35,10 @@ include_HEADERS += pshmem.h \
3635
pshmemx.h
3736
endif
3837

39-
nobase_dist_noinst_HEADERS = $(headers)
40-
nobase_nodist_noinst_HEADERS = $(nodist_headers)
38+
oshmemdir=${includedir}/openshmem
39+
nobase_dist_oshmem_HEADERS = $(headers)
40+
nobase_nodist_oshmem_HEADERS = $(nodist_headers)
41+
endif
4142

4243
distclean-local:
4344

oshmem/runtime/Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99

1010
# This makefile.am does not stand on its own - it is included from oshmem/Makefile.am
1111

12+
if PROJECT_OSHMEM
1213
dist_oshmemdata_DATA += runtime/help-shmem-runtime.txt
13-
14+
endif
1415

1516
headers += \
1617
runtime/runtime.h \

oshmem/shmem/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ EXTRA_DIST =
1212
headers += shmem/shmem_api_logger.h \
1313
shmem/shmem_lock.h
1414

15+
if PROJECT_OSHMEM
1516
dist_oshmemdata_DATA += shmem/help-shmem-api.txt
17+
endif

oshmem/shmem/man/man3/Makefile.extra

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,5 +176,7 @@ shmem_api_man_pages = \
176176
shmem/man/man3/shmem_clear_cache_inv.3 \
177177
shmem/man/man3/shmem_clear_cache_line_inv.3
178178

179+
if PROJECT_OSHMEM
179180
nodist_man_MANS += $(shmem_api_man_pages)
180181
EXTRA_DIST += $(shmem_api_man_pages:.3=.3in)
182+
endif # PROJECT_OSHMEM

oshmem/tools/wrappers/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
#
1111
# $HEADER$
1212

13+
if PROJECT_OSHMEM
1314
nodist_oshmemdata_DATA = \
1415
shmemcc-wrapper-data.txt \
1516
shmemfort-wrapper-data.txt
1617

17-
if PROJECT_OSHMEM
1818
# Only install / uninstall if we're building oshmem
1919
install-exec-hook:
2020
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"

0 commit comments

Comments
 (0)