Let's try this again, this time with less suck.
* Don't do the .in -> .tmp -> header thing for the prefixes and versions. It causes some severe cleanup issues all to save 4 files from rebuilding when configure is run. * Clean up some makefiles so it's clear what is being installed/disted This commit was SVN r9260.
Этот коммит содержится в:
родитель
ea7b9cfc81
Коммит
1f6e85af4c
@ -63,19 +63,5 @@ AC_DEFUN([OMPI_INSTALL_DIRS], [
|
|||||||
|
|
||||||
exec_prefix="$ompi_exec_prefix_save"
|
exec_prefix="$ompi_exec_prefix_save"
|
||||||
|
|
||||||
AC_CONFIG_FILES([$1.tmp:$1.in])
|
AC_CONFIG_FILES([$1])
|
||||||
AC_CONFIG_COMMANDS([install-dirs], [
|
|
||||||
if test -f "$1" ; then
|
|
||||||
diff "$1" "$1.tmp" > /dev/null 2>&1
|
|
||||||
if test "$?" != "0" ; then
|
|
||||||
cp "$1.tmp" "$1"
|
|
||||||
echo "config.status: regenerating $1"
|
|
||||||
else
|
|
||||||
echo "config.status: $1 unchanged"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
cp "$1.tmp" "$1"
|
|
||||||
echo "config.status: creating $1"
|
|
||||||
fi
|
|
||||||
rm "$1.tmp"])
|
|
||||||
])dnl
|
])dnl
|
||||||
|
@ -50,19 +50,5 @@ AC_DEFUN([OMPI_SAVE_VERSION], [
|
|||||||
AC_DEFINE_UNQUOTED($1[_VERSION], ["$]$1[_RELEASE_VERSION"],
|
AC_DEFINE_UNQUOTED($1[_VERSION], ["$]$1[_RELEASE_VERSION"],
|
||||||
[Complete release number of ]$2)
|
[Complete release number of ]$2)
|
||||||
|
|
||||||
AC_CONFIG_FILES([$4.tmp:$4.in])
|
AC_CONFIG_FILES([$4])
|
||||||
AC_CONFIG_COMMANDS([$1-versions], [
|
|
||||||
if test -f "$4" ; then
|
|
||||||
diff "$4" "$4.tmp" > /dev/null 2>&1
|
|
||||||
if test "$?" != "0" ; then
|
|
||||||
cp "$4.tmp" "$4"
|
|
||||||
echo "config.status: regenerating $4"
|
|
||||||
else
|
|
||||||
echo "config.status: $4 unchanged"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
cp "$4.tmp" "$4"
|
|
||||||
echo "config.status: creating $4"
|
|
||||||
fi
|
|
||||||
rm "$4.tmp"])
|
|
||||||
])dnl
|
])dnl
|
||||||
|
@ -16,9 +16,9 @@
|
|||||||
# $HEADER$
|
# $HEADER$
|
||||||
#
|
#
|
||||||
|
|
||||||
headers = ompi_config.h
|
headers =
|
||||||
|
nodist_headers = \
|
||||||
nodist_headers =
|
ompi_config.h
|
||||||
|
|
||||||
# these two are always installed in $(includedir), but shouldn't be
|
# these two are always installed in $(includedir), but shouldn't be
|
||||||
# shipped since they are generated by configure from their .in
|
# shipped since they are generated by configure from their .in
|
||||||
@ -33,6 +33,8 @@ nobase_dist_ompi_HEADERS = $(headers)
|
|||||||
nobase_nodist_ompi_HEADERS = $(nodist_headers)
|
nobase_nodist_ompi_HEADERS = $(nodist_headers)
|
||||||
else
|
else
|
||||||
ompidir = $(includedir)
|
ompidir = $(includedir)
|
||||||
|
nobase_dist_noinst_HEADERS = $(headers)
|
||||||
|
nobase_nodist_noinst_HEADERS = $(nodist_headers)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include ompi/Makefile.am
|
include ompi/Makefile.am
|
||||||
|
@ -16,28 +16,20 @@
|
|||||||
# $HEADER$
|
# $HEADER$
|
||||||
#
|
#
|
||||||
|
|
||||||
|
headers = \
|
||||||
dist_noinst_HEADERS = \
|
|
||||||
opal_config_bottom.h \
|
opal_config_bottom.h \
|
||||||
opal_stdint.h
|
opal_stdint.h
|
||||||
|
nodist_headers = \
|
||||||
nodist_noinst_HEADERS = \
|
|
||||||
opal_config.h
|
opal_config.h
|
||||||
|
|
||||||
headers =
|
|
||||||
nodist_headers =
|
|
||||||
|
|
||||||
if WANT_INSTALL_HEADERS
|
if WANT_INSTALL_HEADERS
|
||||||
opaldir = $(includedir)/openmpi
|
opaldir = $(includedir)/openmpi
|
||||||
|
nobase_dist_opal_HEADERS = $(headers)
|
||||||
nobase_dist_opal_HEADERS = \
|
nobase_nodist_opal_HEADERS = $(nodist_headers)
|
||||||
$(headers) \
|
|
||||||
$(dist_noinst_HEADERS)
|
|
||||||
nobase_nodist_opal_HEADERS = \
|
|
||||||
$(nodist_headers) \
|
|
||||||
$(nodist_noinst_HEADERS)
|
|
||||||
else
|
else
|
||||||
opaldir = $(includedir)
|
opaldir = $(includedir)
|
||||||
|
nobase_dist_noinst_HEADERS = $(headers)
|
||||||
|
nobase_nodist_noinst_HEADERS = $(nodist_headers)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include opal/Makefile.am
|
include opal/Makefile.am
|
||||||
|
@ -27,3 +27,9 @@ nodist_headers += \
|
|||||||
opal/version.h
|
opal/version.h
|
||||||
|
|
||||||
include opal/sys/Makefile.am
|
include opal/sys/Makefile.am
|
||||||
|
|
||||||
|
opal/install_dirs.h: $(top_builddir)/config.status $(srcdir)/opal/install_dirs.h.in
|
||||||
|
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
|
||||||
|
|
||||||
|
opal/version.h: $(top_builddir)/config.status $(srcdir)/opal/version.h.in
|
||||||
|
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
|
||||||
|
@ -17,9 +17,9 @@
|
|||||||
# $HEADER$
|
# $HEADER$
|
||||||
#
|
#
|
||||||
|
|
||||||
headers = orte_config.h
|
headers =
|
||||||
|
nodist_headers = \
|
||||||
nodist_headers =
|
orte_config.h
|
||||||
|
|
||||||
if WANT_INSTALL_HEADERS
|
if WANT_INSTALL_HEADERS
|
||||||
ortedir = $(includedir)/openmpi
|
ortedir = $(includedir)/openmpi
|
||||||
@ -27,6 +27,8 @@ nobase_dist_orte_HEADERS = $(headers)
|
|||||||
nobase_nodist_orte_HEADERS = $(nodist_headers)
|
nobase_nodist_orte_HEADERS = $(nodist_headers)
|
||||||
else
|
else
|
||||||
ortedir = $(includedir)
|
ortedir = $(includedir)
|
||||||
|
nobase_dist_noinst_HEADERS = $(headers)
|
||||||
|
nobase_nodist_noinst_HEADERS = $(nodist_headers)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include orte/Makefile.am
|
include orte/Makefile.am
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user