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"
|
||||
|
||||
AC_CONFIG_FILES([$1.tmp:$1.in])
|
||||
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"])
|
||||
AC_CONFIG_FILES([$1])
|
||||
])dnl
|
||||
|
@ -50,19 +50,5 @@ AC_DEFUN([OMPI_SAVE_VERSION], [
|
||||
AC_DEFINE_UNQUOTED($1[_VERSION], ["$]$1[_RELEASE_VERSION"],
|
||||
[Complete release number of ]$2)
|
||||
|
||||
AC_CONFIG_FILES([$4.tmp:$4.in])
|
||||
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"])
|
||||
AC_CONFIG_FILES([$4])
|
||||
])dnl
|
||||
|
@ -16,9 +16,9 @@
|
||||
# $HEADER$
|
||||
#
|
||||
|
||||
headers = ompi_config.h
|
||||
|
||||
nodist_headers =
|
||||
headers =
|
||||
nodist_headers = \
|
||||
ompi_config.h
|
||||
|
||||
# these two are always installed in $(includedir), but shouldn't be
|
||||
# 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)
|
||||
else
|
||||
ompidir = $(includedir)
|
||||
nobase_dist_noinst_HEADERS = $(headers)
|
||||
nobase_nodist_noinst_HEADERS = $(nodist_headers)
|
||||
endif
|
||||
|
||||
include ompi/Makefile.am
|
||||
|
@ -16,28 +16,20 @@
|
||||
# $HEADER$
|
||||
#
|
||||
|
||||
|
||||
dist_noinst_HEADERS = \
|
||||
headers = \
|
||||
opal_config_bottom.h \
|
||||
opal_stdint.h
|
||||
|
||||
nodist_noinst_HEADERS = \
|
||||
nodist_headers = \
|
||||
opal_config.h
|
||||
|
||||
headers =
|
||||
nodist_headers =
|
||||
|
||||
if WANT_INSTALL_HEADERS
|
||||
opaldir = $(includedir)/openmpi
|
||||
|
||||
nobase_dist_opal_HEADERS = \
|
||||
$(headers) \
|
||||
$(dist_noinst_HEADERS)
|
||||
nobase_nodist_opal_HEADERS = \
|
||||
$(nodist_headers) \
|
||||
$(nodist_noinst_HEADERS)
|
||||
nobase_dist_opal_HEADERS = $(headers)
|
||||
nobase_nodist_opal_HEADERS = $(nodist_headers)
|
||||
else
|
||||
opaldir = $(includedir)
|
||||
nobase_dist_noinst_HEADERS = $(headers)
|
||||
nobase_nodist_noinst_HEADERS = $(nodist_headers)
|
||||
endif
|
||||
|
||||
include opal/Makefile.am
|
||||
|
@ -27,3 +27,9 @@ nodist_headers += \
|
||||
opal/version.h
|
||||
|
||||
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$
|
||||
#
|
||||
|
||||
headers = orte_config.h
|
||||
|
||||
nodist_headers =
|
||||
headers =
|
||||
nodist_headers = \
|
||||
orte_config.h
|
||||
|
||||
if WANT_INSTALL_HEADERS
|
||||
ortedir = $(includedir)/openmpi
|
||||
@ -27,6 +27,8 @@ nobase_dist_orte_HEADERS = $(headers)
|
||||
nobase_nodist_orte_HEADERS = $(nodist_headers)
|
||||
else
|
||||
ortedir = $(includedir)
|
||||
nobase_dist_noinst_HEADERS = $(headers)
|
||||
nobase_nodist_noinst_HEADERS = $(nodist_headers)
|
||||
endif
|
||||
|
||||
include orte/Makefile.am
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user