[1] | 1 | #-- start of install_includes_header ------
|
---|
| 2 |
|
---|
| 3 | #
|
---|
| 4 | # We want to install all header files that follow the standard convention
|
---|
| 5 | #
|
---|
| 6 | # ../<package>
|
---|
| 7 | #
|
---|
| 8 | # This document generator needs no parameterization, since it simply expects
|
---|
| 9 | # the standard convention.
|
---|
| 10 | #
|
---|
| 11 |
|
---|
| 12 | installarea = ${CMTINSTALLAREA}
|
---|
| 13 | install_include_dir = $(installarea)/include
|
---|
| 14 |
|
---|
| 15 | ${CONSTITUENT} :: ${CONSTITUENT}install
|
---|
| 16 |
|
---|
| 17 | install :: ${CONSTITUENT}install
|
---|
| 18 |
|
---|
| 19 | ${CONSTITUENT}install :: $(install_include_dir)
|
---|
| 20 | @if test ! "$(installarea)" = ""; then\
|
---|
| 21 | echo "installation done"; \
|
---|
| 22 | fi
|
---|
| 23 |
|
---|
| 24 | $(install_include_dir) ::
|
---|
| 25 | @if test "$(installarea)" = ""; then \
|
---|
| 26 | echo "Cannot install header files, no installation directory specified"; \
|
---|
| 27 | else \
|
---|
| 28 | if test -d ../${package}; then \
|
---|
| 29 | echo "Installing files from standard ../${package} to $(install_include_dir)"; \
|
---|
| 30 | if test ! -d $(install_include_dir) ; then mkdir -p $(install_include_dir); fi; \
|
---|
| 31 | if test ! -L $(install_include_dir)/$(package); then \
|
---|
| 32 | (cd ../${package}; \
|
---|
| 33 | here=`pwd`; \
|
---|
| 34 | eval ln -s $${here} $(install_include_dir)/$(package); \
|
---|
| 35 | echo $${here} >|$(install_include_dir)/$(package).cmtref); \
|
---|
| 36 | fi; \
|
---|
| 37 | else \
|
---|
| 38 | echo "No standard include file area"; \
|
---|
| 39 | fi; \
|
---|
| 40 | fi
|
---|
| 41 |
|
---|
| 42 | ${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
|
---|
| 43 |
|
---|
| 44 | uninstall :: ${CONSTITUENT}uninstall
|
---|
| 45 |
|
---|
| 46 | ${CONSTITUENT}uninstall ::
|
---|
| 47 | @if test ! "$(installarea)" = ""; then \
|
---|
| 48 | echo "Cannot uninstall header files, no installation directory specified"; \
|
---|
| 49 | else \
|
---|
| 50 | if test -d $(install_include_dir)/$(package) ; then \
|
---|
| 51 | echo "Uninstalling files from $(install_include_dir)/$(package)"; \
|
---|
| 52 | eval rm -Rf $(install_include_dir)/$(package) ; \
|
---|
| 53 | fi \
|
---|
| 54 | if test -d $(install_include_dir)/$(package).cmtref ; then \
|
---|
| 55 | echo "Uninstalling files from $(install_include_dir)/$(package).cmtref"; \
|
---|
| 56 | eval rm -f $(install_include_dir)/$(package).cmtref ; \
|
---|
| 57 | fi \
|
---|
| 58 | fi
|
---|
| 59 |
|
---|
| 60 |
|
---|
| 61 | #-- end of install_includes_header ------
|
---|