summaryrefslogtreecommitdiffstats
path: root/win/Makefile.in
diff options
context:
space:
mode:
authordas <das>2004-07-20 10:23:51 (GMT)
committerdas <das>2004-07-20 10:23:51 (GMT)
commitac8f8e006cf1fe9ead9b11b68883898d08d420c6 (patch)
tree3079cfcec2030c999df9d781aa77330f47020878 /win/Makefile.in
parent421c7030bc04d085205be748bff3f9c8d81f941c (diff)
downloadtk-ac8f8e006cf1fe9ead9b11b68883898d08d420c6.zip
tk-ac8f8e006cf1fe9ead9b11b68883898d08d420c6.tar.gz
tk-ac8f8e006cf1fe9ead9b11b68883898d08d420c6.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 'win/Makefile.in')
-rw-r--r--win/Makefile.in23
1 files changed, 22 insertions, 1 deletions
diff --git a/win/Makefile.in b/win/Makefile.in
index 91a5c4f..277a99a 100644
--- a/win/Makefile.in
+++ b/win/Makefile.in
@@ -4,7 +4,7 @@
# "autoconf" program (constructs like "@foo@" will get replaced in the
# actual Makefile.
#
-# RCS: @(#) $Id: Makefile.in,v 1.61 2004/04/24 06:00:20 das Exp $
+# RCS: @(#) $Id: Makefile.in,v 1.62 2004/07/20 10:23:51 das Exp $
TCLVERSION = @TCL_VERSION@
VERSION = @TK_VERSION@
@@ -56,6 +56,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)
@@ -526,6 +529,24 @@ install-demos:
install-doc: doc
+# 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) $$i; \
+ chmod 755 $$i; \
+ else true; \
+ fi; \
+ done;
+ @echo "Installing private header files to $(PRIVATE_INCLUDE_INSTALL_DIR)/";
+ @for i in $(GENERIC_DIR)/tkInt.h $(GENERIC_DIR)/tkIntDecls.h \
+ $(GENERIC_DIR)/tkIntPlatDecls.h $(GENERIC_DIR)/tkPort.h \
+ $(WIN_DIR)/tkWinPort.h $(WIN_DIR)/tkWinInt.h $(WIN_DIR)/tkWin.h; \
+ do \
+ $(INSTALL_DATA) $$i $(PRIVATE_INCLUDE_INSTALL_DIR); \
+ done;
$(WISH): $(TK_LIB_FILE) $(TK_STUB_LIB_FILE) $(WISH_OBJS) wish.$(RES)
$(CC) $(CFLAGS) $(WISH_OBJS) $(TCL_LIB_FILE) $(TK_LIB_FILE) $(LIBS) \