Makefile.in 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. srcdir = @srcdir@
  2. VPATH = @srcdir@
  3. CMAKE_CONFIG_DIR = @CMAKE_CONFIG_DIR@
  4. all:
  5. cd Source; ${MAKE}
  6. # Default top-level directories in which to install architecture-
  7. # specific files (exec_prefix) and machine-independent files such
  8. # as scripts (prefix). The values specified here may be overridden
  9. # at configure-time with the --exec-prefix and --prefix options
  10. # to the "configure" script.
  11. prefix = @prefix@
  12. exec_prefix = @exec_prefix@
  13. # Directory in which to install the program cmake
  14. BIN_INSTALL_DIR = $(exec_prefix)/bin
  15. # Directory in which to install the templates and modules
  16. LIB_INSTALL_DIR = $(exec_prefix)/share/CMake
  17. INSTALL = @srcdir@/install-sh -c
  18. INSTALL_PROGRAM = ${INSTALL} -m 755
  19. INSTALL_DATA = ${INSTALL} -m 644
  20. install:
  21. @for i in $(LIB_INSTALL_DIR)/Modules $(LIB_INSTALL_DIR)/Templates $(BIN_INSTALL_DIR) ; \
  22. do \
  23. if [ ! -d $$i ] ; then \
  24. echo "Making directory $$i"; \
  25. mkdir -p $$i; \
  26. chmod 755 $$i; \
  27. else true; \
  28. fi; \
  29. done;
  30. @echo "Installing CMake"
  31. chmod +x @srcdir@/install-sh
  32. @echo "Installing cmake executable"
  33. @$(INSTALL_PROGRAM) Source/cmake $(BIN_INSTALL_DIR)/cmake
  34. @for i in @srcdir@/Modules/*.cmake*; \
  35. do \
  36. echo "Installing $$i"; \
  37. $(INSTALL_DATA) $$i $(LIB_INSTALL_DIR)/Modules; \
  38. done;
  39. @for i in @srcdir@/Templates/*.cmake*; \
  40. do \
  41. echo "Installing $$i"; \
  42. $(INSTALL_DATA) $$i $(LIB_INSTALL_DIR)/Templates; \
  43. done;
  44. @echo "Installing configure"
  45. @$(INSTALL_PROGRAM) @srcdir@/Templates/configure $(LIB_INSTALL_DIR)/Templates
  46. @echo "Installing install-sh"
  47. @$(INSTALL_PROGRAM) @srcdir@/install-sh $(LIB_INSTALL_DIR)/Templates