source: CMT/v1r18p20041201/mgr/fragments/install_includes_header@ 1

Last change on this file since 1 was 1, checked in by arnault, 21 years ago

Import all tags

File size: 2.2 KB
Line 
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
12installarea = ${CMTINSTALLAREA}
13install_include_dir = $(installarea)/include
14
15${CONSTITUENT} :: ${CONSTITUENT}install
16
17install :: ${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=`/bin/pwd`; \
34 eval ln -s $${here} $(install_include_dir)/$(package); \
35 /bin/rm -f $(install_include_dir)/$(package).cmtref; \
36 echo $${here} >$(install_include_dir)/$(package).cmtref); \
37 fi; \
38 else \
39 echo "No standard include file area"; \
40 fi; \
41 fi
42
43##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
44
45uninstall :: ${CONSTITUENT}uninstall
46
47${CONSTITUENT}uninstall ::
48 @if test "$(installarea)" = ""; then \
49 echo "Cannot uninstall header files, no installation directory specified"; \
50 else \
51 if test -d $(install_include_dir)/$(package) ; then \
52 echo "Uninstalling files from $(install_include_dir)/$(package)"; \
53 eval rm -Rf $(install_include_dir)/$(package) ; \
54 elif test -L $(install_include_dir)/$(package) ; then \
55 echo "Uninstalling files from $(install_include_dir)/$(package)"; \
56 eval rm -f $(install_include_dir)/$(package) ; \
57 fi ; \
58 if test -f $(install_include_dir)/$(package).cmtref ; then \
59 echo "Uninstalling files from $(install_include_dir)/$(package).cmtref"; \
60 eval rm -f $(install_include_dir)/$(package).cmtref ; \
61 fi; \
62 fi
63
64
65#-- end of install_includes_header ------
Note: See TracBrowser for help on using the repository browser.