ERR: Added missing @srcdir@ and modified install expressions to include *.cmake* files instead of just *.cmake files (for .in).

This commit is contained in:
Brad King 2001-05-21 16:43:08 -04:00
parent 7727c7ef96
commit 1631b200aa
1 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ BIN_INSTALL_DIR = $(exec_prefix)/bin
# Directory in which to install the templates and modules
LIB_INSTALL_DIR = $(exec_prefix)/share/CMake
INSTALL = ./install-sh -c
INSTALL = @srcdir@/install-sh -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
@ -40,12 +40,12 @@ install:
chmod +x @srcdir@/install-sh
@echo "Installing cmake executable"
@$(INSTALL_PROGRAM) Source/cmake $(BIN_INSTALL_DIR)/cmake
@for i in @srcdir@/Modules/*.cmake; \
@for i in @srcdir@/Modules/*.cmake*; \
do \
echo "Installing $$i"; \
$(INSTALL_DATA) $$i $(LIB_INSTALL_DIR)/Modules; \
done;
@for i in @srcdir@/Templates/*.cmake; \
@for i in @srcdir@/Templates/*.cmake*; \
do \
echo "Installing $$i"; \
$(INSTALL_DATA) $$i $(LIB_INSTALL_DIR)/Templates; \