diff options
author | das <das> | 2004-07-20 10:23:51 (GMT) |
---|---|---|
committer | das <das> | 2004-07-20 10:23:51 (GMT) |
commit | cf9fb3ed712ee004269572f6cab457596a61a62c (patch) | |
tree | 3079cfcec2030c999df9d781aa77330f47020878 /unix/Makefile.in | |
parent | 2cc6cd77dfd75dc0682e393f661a97047a3c8916 (diff) | |
download | tk-cf9fb3ed712ee004269572f6cab457596a61a62c.zip tk-cf9fb3ed712ee004269572f6cab457596a61a62c.tar.gz tk-cf9fb3ed712ee004269572f6cab457596a61a62c.tar.bz2 |
* unix/Makefile.in:
* win/Makefile.in: added 'install-private-headers' makefile target
to allow optionally installing private tk headers. [Tcl FR 922727]
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 c714e8d..663369f 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.94 2004/07/16 23:40:29 hobbs Exp $ +# RCS: @(#) $Id: Makefile.in,v 1.95 2004/07/20 10:23:51 das Exp $ # Current Tk version; used in various names. @@ -63,6 +63,9 @@ SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(TK_LIBRARY) # Directory in which to install the include file tk.h: INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir) +# Directory in which to (optionally) install the private tk headers: +PRIVATE_INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir) + # Top-level directory for manual entries: MAN_INSTALL_DIR = $(INSTALL_ROOT)$(mandir) @@ -678,6 +681,28 @@ install-doc: @echo "Cross-linking command (.n) docs"; @$(UNIX_DIR)/mkLinks $(MKLINKS_FLAGS) $(MANN_INSTALL_DIR) +# Optional target to install private headers +install-private-headers: + @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 $(UNIX_DIR)/install-sh; then \ + chmod +x $(UNIX_DIR)/install-sh; \ + fi + @echo "Installing private header files"; + @for i in $(GENERIC_DIR)/tkInt.h $(GENERIC_DIR)/tkIntDecls.h \ + $(GENERIC_DIR)/tkIntPlatDecls.h $(GENERIC_DIR)/tkPort.h \ + $(UNIX_DIR)/tkUnixPort.h $(UNIX_DIR)/tkUnixInt.h ; \ + do \ + $(INSTALL_DATA) $$i $(PRIVATE_INCLUDE_INSTALL_DIR); \ + done; + Makefile: $(UNIX_DIR)/Makefile.in $(SHELL) config.status |