2006-01-16 04:48:03 +03:00
|
|
|
#
|
|
|
|
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
# University Research and Technology
|
|
|
|
# Corporation. All rights reserved.
|
2006-08-23 04:29:35 +04:00
|
|
|
# Copyright (c) 2004-2006 The University of Tennessee and The University
|
2006-01-16 04:48:03 +03:00
|
|
|
# of Tennessee Research Foundation. All rights
|
|
|
|
# reserved.
|
|
|
|
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
# University of Stuttgart. All rights reserved.
|
|
|
|
# Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
# All rights reserved.
|
2008-03-22 05:04:05 +03:00
|
|
|
# Copyright (c) 2006-2008 Cisco Systems, Inc. All rights reserved.
|
2008-08-02 01:14:37 +04:00
|
|
|
# Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
|
2006-01-16 04:48:03 +03:00
|
|
|
# $COPYRIGHT$
|
|
|
|
#
|
|
|
|
# Additional copyrights may follow
|
|
|
|
#
|
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
2006-10-19 22:34:17 +04:00
|
|
|
DEFS="-DEXEEXT=\"$(EXEEXT)\""
|
|
|
|
|
2008-08-02 01:14:37 +04:00
|
|
|
real_man_pages = generic_wrapper.1 opal_wrapper.1
|
2008-08-07 23:20:40 +04:00
|
|
|
EXTRA_DIST = $(real_man_pages:.1=.1in)
|
2008-08-02 01:14:37 +04:00
|
|
|
|
|
|
|
include $(top_srcdir)/Makefile.man-page-rules
|
2007-07-02 19:27:39 +04:00
|
|
|
|
2008-06-14 02:52:25 +04:00
|
|
|
if !OMPI_WANT_SCRIPT_WRAPPER_COMPILERS
|
2006-10-19 22:34:17 +04:00
|
|
|
if OMPI_INSTALL_BINARIES
|
|
|
|
|
|
|
|
bin_PROGRAMS = opal_wrapper
|
2006-08-23 04:29:35 +04:00
|
|
|
|
2008-08-07 23:20:40 +04:00
|
|
|
nodist_man_MANS = opal_wrapper.1
|
2007-01-17 06:11:42 +03:00
|
|
|
|
2008-03-22 05:04:05 +03:00
|
|
|
dist_pkgdata_DATA = help-opal-wrapper.txt
|
2006-09-25 18:11:21 +04:00
|
|
|
|
2008-03-22 05:04:05 +03:00
|
|
|
# Only install the following for developer-level installs
|
2006-10-19 22:34:17 +04:00
|
|
|
if WANT_INSTALL_HEADERS
|
2006-04-29 06:16:41 +04:00
|
|
|
|
2006-01-16 04:48:03 +03:00
|
|
|
nodist_pkgdata_DATA = \
|
|
|
|
opalcc-wrapper-data.txt \
|
|
|
|
opalc++-wrapper-data.txt
|
|
|
|
|
2008-08-07 23:20:40 +04:00
|
|
|
nodist_man_MANS += opalcc.1 opalc++.1
|
2006-09-25 18:11:21 +04:00
|
|
|
|
2006-01-16 04:48:03 +03:00
|
|
|
install-exec-hook:
|
2006-10-03 21:01:54 +04:00
|
|
|
(cd $(DESTDIR)$(bindir); rm -f opalcc$(EXEEXT); $(LN_S) opal_wrapper opalcc)
|
2006-01-16 04:48:03 +03:00
|
|
|
(cd $(DESTDIR)$(bindir); rm -f opalc++$(EXEEXT); $(LN_S) opal_wrapper opalc++)
|
|
|
|
|
|
|
|
uninstall-local:
|
|
|
|
rm -f $(DESTDIR)$(bindir)/opalcc$(EXEEXT) \
|
2006-10-19 22:34:17 +04:00
|
|
|
$(DESTDIR)$(bindir)/opalc++$(EXEEXT)
|
2006-09-29 18:34:39 +04:00
|
|
|
|
2006-10-19 22:34:17 +04:00
|
|
|
endif # WANT_INSTALL_HEADERS
|
2006-04-29 06:16:41 +04:00
|
|
|
|
2008-03-22 05:04:05 +03:00
|
|
|
endif # OMPI_INSTALL_BINARIES
|
2008-06-14 02:52:25 +04:00
|
|
|
endif # OMPI_WANT_SCRIPT_WRAPPER_COMPILERS
|
2008-03-22 05:04:05 +03:00
|
|
|
|
|
|
|
opal_wrapper_SOURCES = opal_wrapper.c
|
|
|
|
opal_wrapper_LDADD = $(top_builddir)/opal/libopen-pal.la
|
|
|
|
|
2008-08-07 23:20:40 +04:00
|
|
|
# Ensure that the man pages are rebuilt if the opal_config.h file
|
|
|
|
# changes; a "good enough" way to know if configure was run again (and
|
|
|
|
# therefore the release date or version may have changed)
|
|
|
|
$(real_man_pages): $(top_builddir)/opal/include/opal_config.h
|
2006-10-20 00:14:40 +04:00
|
|
|
|
2007-07-02 19:27:39 +04:00
|
|
|
opalcc.1: generic_wrapper.1
|
2006-10-19 22:34:17 +04:00
|
|
|
rm -f opalcc.1
|
2008-08-04 19:17:50 +04:00
|
|
|
sed -e 's/#COMMAND#/opalcc/g' -e 's/#PROJECT#/Open PAL/g' -e 's/#PROJECT_SHORT#/OPAL/g' -e 's/#LANGUAGE#/C/g' < $(top_builddir)/opal/tools/wrappers/generic_wrapper.1 > opalcc.1
|
2006-04-29 06:16:41 +04:00
|
|
|
|
2007-07-02 19:27:39 +04:00
|
|
|
opalc++.1: generic_wrapper.1
|
2006-10-19 22:34:17 +04:00
|
|
|
rm -f opalc++.1
|
2008-08-04 19:17:50 +04:00
|
|
|
sed -e 's/#COMMAND#/opalc++/g' -e 's/#PROJECT#/Open PAL/g' -e 's/#PROJECT_SHORT#/OPAL/g' -e 's/#LANGUAGE#/C++/g' < $(top_builddir)/opal/tools/wrappers/generic_wrapper.1 > opalc++.1
|
2008-08-02 01:14:37 +04:00
|
|
|
|
2008-08-07 23:20:40 +04:00
|
|
|
distclean-local:
|
|
|
|
rm -f $(real_man_pages) opalcc.1 opalc++.1
|