1
1

Merge pull request #4209 from rhc54/topic/foobar

Only build prun if building --with-devel-headers
Этот коммит содержится в:
Ralph Castain 2017-09-13 13:07:29 -07:00 коммит произвёл GitHub
родитель 0a3d8af4c2 3f8908871b
Коммит 8d336ddcc0
2 изменённых файлов: 23 добавлений и 17 удалений

Просмотреть файл

@ -2,7 +2,7 @@
# Copyright (c) 2012 Los Alamos National Security, LLC. # Copyright (c) 2012 Los Alamos National Security, LLC.
# All rights reserved. # All rights reserved.
# Copyright (c) 2014 Cisco Systems, Inc. All rights reserved. # Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
# Copyright (c) 2016 Intel, Inc. All rights reserved. # Copyright (c) 2016-2017 Intel, Inc. All rights reserved.
# $COPYRIGHT$ # $COPYRIGHT$
# #
# Additional copyrights may follow # Additional copyrights may follow
@ -28,10 +28,12 @@ libmca_rte_orte_la_SOURCES =$(sources) $(headers)
libmca_rte_orte_la_LDFLAGS = -module -avoid-version libmca_rte_orte_la_LDFLAGS = -module -avoid-version
libmca_rte_orte_la_LIBADD = $(top_builddir)/orte/lib@ORTE_LIB_PREFIX@open-rte.la libmca_rte_orte_la_LIBADD = $(top_builddir)/orte/lib@ORTE_LIB_PREFIX@open-rte.la
man_pages = mpirun.1 mpiexec.1 ompi-ps.1 ompi-clean.1 ompi-top.1 ompi-server.1 ompi-dvm.1 man_pages = mpirun.1 mpiexec.1 ompi-ps.1 ompi-clean.1 ompi-top.1 ompi-server.1
if WANT_FT if OPAL_WANT_PRUN
man_pages += ompi-checkpoint.1 ompi-restart.1 if WANT_INSTALL_HEADERS
man_pages += ompi-dvm.1
endif
endif endif
if OPAL_INSTALL_BINARIES if OPAL_INSTALL_BINARIES
@ -44,11 +46,10 @@ install-exec-hook:
(cd $(DESTDIR)$(bindir); rm -f ompi-clean$(EXEEXT); $(LN_S) orte-clean$(EXEEXT) ompi-clean$(EXEEXT)) (cd $(DESTDIR)$(bindir); rm -f ompi-clean$(EXEEXT); $(LN_S) orte-clean$(EXEEXT) ompi-clean$(EXEEXT))
(cd $(DESTDIR)$(bindir); rm -f ompi-top$(EXEEXT); $(LN_S) orte-top$(EXEEXT) ompi-top$(EXEEXT)) (cd $(DESTDIR)$(bindir); rm -f ompi-top$(EXEEXT); $(LN_S) orte-top$(EXEEXT) ompi-top$(EXEEXT))
(cd $(DESTDIR)$(bindir); rm -f ompi-server$(EXEEXT); $(LN_S) orte-server$(EXEEXT) ompi-server$(EXEEXT)) (cd $(DESTDIR)$(bindir); rm -f ompi-server$(EXEEXT); $(LN_S) orte-server$(EXEEXT) ompi-server$(EXEEXT))
if OPAL_WANT_PRUN
if WANT_INSTALL_HEADERS
(cd $(DESTDIR)$(bindir); rm -f ompi-dvm$(EXEEXT); $(LN_S) orte-dvm$(EXEEXT) ompi-dvm$(EXEEXT)) (cd $(DESTDIR)$(bindir); rm -f ompi-dvm$(EXEEXT); $(LN_S) orte-dvm$(EXEEXT) ompi-dvm$(EXEEXT))
if WANT_FT endif
(cd $(DESTDIR)$(bindir); rm -f ompi-checkpoint$(EXEEXT); $(LN_S) orte-checkpoint$(EXEEXT) ompi-checkpoint$(EXEEXT))
(cd $(DESTDIR)$(bindir); rm -f ompi-restart$(EXEEXT); $(LN_S) orte-restart$(EXEEXT) ompi-restart$(EXEEXT))
(cd $(DESTDIR)$(bindir); rm -f ompi-migrate$(EXEEXT); $(LN_S) orte-migrate$(EXEEXT) ompi-migrate$(EXEEXT))
endif endif
uninstall-local: uninstall-local:
@ -57,12 +58,11 @@ uninstall-local:
$(DESTDIR)$(bindir)/ompi-ps$(EXEEXT) \ $(DESTDIR)$(bindir)/ompi-ps$(EXEEXT) \
$(DESTDIR)$(bindir)/ompi-clean$(EXEEXT) \ $(DESTDIR)$(bindir)/ompi-clean$(EXEEXT) \
$(DESTDIR)$(bindir)/ompi-top$(EXEEXT) \ $(DESTDIR)$(bindir)/ompi-top$(EXEEXT) \
$(DESTDIR)$(bindir)/ompi-server$(EXEEXT) \ $(DESTDIR)$(bindir)/ompi-server$(EXEEXT)
$(DESTDIR)$(bindir)/ompi-dvm$(EXEEXT) if OPAL_WANT_PRUN
if WANT_FT if WANT_INSTALL_HEADERS
rm -f $(DESTDIR)$(bindir)/ompi-checkpoint$(EXEEXT) \ m -f $(DESTDIR)$(bindir)/ompi-dvm$(EXEEXT)
$(DESTDIR)$(bindir)/ompi-restart$(EXEEXT) \ endif
$(DESTDIR)$(bindir)/ompi-migrate$(EXEEXT)
endif endif
endif # OPAL_INSTALL_BINARIES endif # OPAL_INSTALL_BINARIES
@ -118,8 +118,12 @@ $(top_builddir)/orte/tools/orte-server/orte-server.1:
ompi-server.1: $(top_builddir)/orte/tools/orte-server/orte-server.1 ompi-server.1: $(top_builddir)/orte/tools/orte-server/orte-server.1
cp -f $(top_builddir)/orte/tools/orte-server/orte-server.1 ompi-server.1 cp -f $(top_builddir)/orte/tools/orte-server/orte-server.1 ompi-server.1
if OPAL_WANT_PRUN
if WANT_INSTALL_HEADERS
ompi-dvm.1: $(top_builddir)/orte/tools/orte-dvm/orte-dvm.1 ompi-dvm.1: $(top_builddir)/orte/tools/orte-dvm/orte-dvm.1
cp -f $(top_builddir)/orte/tools/orte-dvm/orte-dvm.1 ompi-dvm.1 cp -f $(top_builddir)/orte/tools/orte-dvm/orte-dvm.1 ompi-dvm.1
endif
endif
clean-local: clean-local:
rm -f $(man_pages) rm -f $(man_pages)

Просмотреть файл

@ -35,8 +35,7 @@ SUBDIRS += \
tools/orte-top \ tools/orte-top \
tools/orte-info \ tools/orte-info \
tools/orte-migrate \ tools/orte-migrate \
tools/orte-server \ tools/orte-server
tools/orte-dvm
DIST_SUBDIRS += \ DIST_SUBDIRS += \
tools/orte-checkpoint \ tools/orte-checkpoint \
@ -54,6 +53,9 @@ DIST_SUBDIRS += \
tools/prun tools/prun
if OPAL_WANT_PRUN if OPAL_WANT_PRUN
if WANT_INSTALL_HEADERS
SUBDIRS += \ SUBDIRS += \
tools/prun tools/prun \
tools/orte-dvm
endif
endif endif