ERR: Added missing @srcdir@ and modified install expressions to include *.cmake* files instead of just *.cmake files (for .in).
This commit is contained in:
parent
7727c7ef96
commit
1631b200aa
@ -22,7 +22,7 @@ BIN_INSTALL_DIR = $(exec_prefix)/bin
|
|||||||
# Directory in which to install the templates and modules
|
# Directory in which to install the templates and modules
|
||||||
LIB_INSTALL_DIR = $(exec_prefix)/share/CMake
|
LIB_INSTALL_DIR = $(exec_prefix)/share/CMake
|
||||||
|
|
||||||
INSTALL = ./install-sh -c
|
INSTALL = @srcdir@/install-sh -c
|
||||||
INSTALL_PROGRAM = ${INSTALL}
|
INSTALL_PROGRAM = ${INSTALL}
|
||||||
INSTALL_DATA = ${INSTALL} -m 644
|
INSTALL_DATA = ${INSTALL} -m 644
|
||||||
|
|
||||||
@ -40,12 +40,12 @@ install:
|
|||||||
chmod +x @srcdir@/install-sh
|
chmod +x @srcdir@/install-sh
|
||||||
@echo "Installing cmake executable"
|
@echo "Installing cmake executable"
|
||||||
@$(INSTALL_PROGRAM) Source/cmake $(BIN_INSTALL_DIR)/cmake
|
@$(INSTALL_PROGRAM) Source/cmake $(BIN_INSTALL_DIR)/cmake
|
||||||
@for i in @srcdir@/Modules/*.cmake; \
|
@for i in @srcdir@/Modules/*.cmake*; \
|
||||||
do \
|
do \
|
||||||
echo "Installing $$i"; \
|
echo "Installing $$i"; \
|
||||||
$(INSTALL_DATA) $$i $(LIB_INSTALL_DIR)/Modules; \
|
$(INSTALL_DATA) $$i $(LIB_INSTALL_DIR)/Modules; \
|
||||||
done;
|
done;
|
||||||
@for i in @srcdir@/Templates/*.cmake; \
|
@for i in @srcdir@/Templates/*.cmake*; \
|
||||||
do \
|
do \
|
||||||
echo "Installing $$i"; \
|
echo "Installing $$i"; \
|
||||||
$(INSTALL_DATA) $$i $(LIB_INSTALL_DIR)/Templates; \
|
$(INSTALL_DATA) $$i $(LIB_INSTALL_DIR)/Templates; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user