diff options
author | das <das@noemail.net> | 2004-07-20 10:23:13 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2004-07-20 10:23:13 (GMT) |
commit | 881cbe8a08671c1b922cd2e1df502f6d152c10e7 (patch) | |
tree | ad3a238b490a9689bcd9dcb07134212c1d386684 /unix/Makefile.in | |
parent | 8959ebed5072630cda855e4f01cb9f76ada2e5fc (diff) | |
download | tcl-881cbe8a08671c1b922cd2e1df502f6d152c10e7.zip tcl-881cbe8a08671c1b922cd2e1df502f6d152c10e7.tar.gz tcl-881cbe8a08671c1b922cd2e1df502f6d152c10e7.tar.bz2 |
* unix/Makefile.in:
* win/Makefile.in: added 'install-private-headers' makefile target
to allow optionally installing private tcl headers. [FR 922727]
* macosx/Makefile: use new 'install-private-headers' target
to install private headers into framework. [FR 922727]
FossilOrigin-Name: 542b0bd9ec1851f94490ce732f39b195caf085af
Diffstat (limited to 'unix/Makefile.in')
-rw-r--r-- | unix/Makefile.in | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/unix/Makefile.in b/unix/Makefile.in index 46f3566..ad7f4da 100644 --- a/unix/Makefile.in +++ b/unix/Makefile.in @@ -5,7 +5,7 @@ # "autoconf" program (constructs like "@foo@" will get replaced in the # actual Makefile. # -# RCS: @(#) $Id: Makefile.in,v 1.140 2004/07/16 23:31:19 hobbs Exp $ +# RCS: @(#) $Id: Makefile.in,v 1.141 2004/07/20 10:23:14 das Exp $ VERSION = @TCL_VERSION@ MAJOR_VERSION = @TCL_MAJOR_VERSION@ @@ -58,6 +58,9 @@ SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(TCL_LIBRARY) # Directory in which to install the include file tcl.h: INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir) +# Directory in which to (optionally) install the private tcl headers: +PRIVATE_INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir) + # Top-level directory in which to install manual entries: MAN_INSTALL_DIR = $(INSTALL_ROOT)$(mandir) @@ -731,6 +734,28 @@ install-doc: doc @echo "Cross-linking command (.n) docs"; @$(UNIX_DIR)/mkLinks $(MKLINKS_FLAGS) $(MANN_INSTALL_DIR) +# Optional target to install private headers +install-private-headers: libraries + @for i in $(PRIVATE_INCLUDE_INSTALL_DIR); \ + do \ + if [ ! -d $$i ] ; then \ + echo "Making directory $$i"; \ + mkdir -p $$i; \ + chmod 755 $$i; \ + else true; \ + fi; \ + done; + @if test ! -x $(SRC_DIR)/install-sh; then \ + chmod +x $(SRC_DIR)/install-sh; \ + fi + @echo "Installing private header files"; + @for i in $(GENERIC_DIR)/tclInt.h $(GENERIC_DIR)/tclIntDecls.h \ + $(GENERIC_DIR)/tclIntPlatDecls.h $(GENERIC_DIR)/tclPort.h \ + $(UNIX_DIR)/tclUnixPort.h ; \ + do \ + $(INSTALL_DATA) $$i $(PRIVATE_INCLUDE_INSTALL_DIR); \ + done; + Makefile: $(UNIX_DIR)/Makefile.in $(DLTEST_DIR)/Makefile.in $(SHELL) config.status |