summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2007-01-30 23:21:23 (GMT)
committerhobbs <hobbs>2007-01-30 23:21:23 (GMT)
commit2a5565c320c52af8631fcd42d760efc01c3bbfce (patch)
treea622cf76ac0c9a6101e41e7ac46547820a7e0e69
parent89dce2e31de5c79ab20518715f41f7cb8e2e38fc (diff)
downloadtk-2a5565c320c52af8631fcd42d760efc01c3bbfce.zip
tk-2a5565c320c52af8631fcd42d760efc01c3bbfce.tar.gz
tk-2a5565c320c52af8631fcd42d760efc01c3bbfce.tar.bz2
* win/Makefile.in (install-private-headers): added target
-rw-r--r--ChangeLog4
-rw-r--r--win/Makefile.in24
2 files changed, 27 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d61b47c..fc6f8ed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-01-30 Jeff Hobbs <jeffh@ActiveState.com>
+
+ * win/Makefile.in (install-private-headers): added target
+
2007-01-25 Daniel Steffen <das@users.sourceforge.net>
* unix/tcl.m4: integrate CPPFLAGS into CFLAGS as late as possible
diff --git a/win/Makefile.in b/win/Makefile.in
index 9cb4273..f96678f 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.59.2.6 2006/09/25 17:28:21 andreas_kupries Exp $
+# RCS: @(#) $Id: Makefile.in,v 1.59.2.7 2007/01/30 23:21:24 hobbs Exp $
TCLVERSION = @TCL_VERSION@
TCLPATCHL = @TCL_PATCH_LEVEL@
@@ -57,6 +57,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)
@@ -517,6 +520,25 @@ 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) \