1# 2# This file is a Makefile for [incr Widgets]. If it has the name 3# "Makefile.in" then it is a template for a Makefile; to generate 4# the actual Makefile, run "./configure", which is a configuration 5# script generated by the "autoconf" program (constructs like 6# "@foo@" will get replaced in the actual Makefile. 7# 8# RCS: $Id: Makefile.in,v 1.13 2002/09/10 21:27:21 smithc Exp $ 9 10# Current [incr Widgets] version; used in various names. 11 12ITCL_VERSION = 3.3 13IWIDGETS_VERSION = @VERSION@ 14 15#---------------------------------------------------------------- 16# Things you can change to personalize the Makefile for your own 17# site (you can make these changes in either Makefile.in or 18# Makefile, but changes to Makefile will get lost if you re-run 19# the configuration script). 20#---------------------------------------------------------------- 21 22# Default top-level directories in which to install architecture- 23# specific files (exec_prefix) and machine-independent files such 24# as scripts (prefix). The values specified here may be overridden 25# at configure-time with the --exec-prefix and --prefix options 26# to the "configure" script. 27 28prefix = @prefix@ 29exec_prefix = @exec_prefix@ 30 31srcdir = @srcdir@ 32bindir = @bindir@ 33 34# The following definition can be set to non-null for special systems 35# like AFS with replication. It allows the pathnames used for installation 36# to be different than those used for actually reference files at 37# run-time. INSTALL_ROOT is prepended to $prefix and $exec_prefix 38# when installing files. 39INSTALL_ROOT = 40 41# Path name to use when installing library scripts: 42SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/lib/iwidgets$(IWIDGETS_VERSION) 43 44# Directory in which to install the archive libtcl.a: 45LIB_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/lib 46 47# Directory in which to install the program tclsh: 48BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin 49 50# Top-level directory in which to install manual entries: 51MAN_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/man/mann 52 53# Directory containing Tcl source code (for library used during test): 54TCL_SRC_DIR = @TCL_SRC_DIR@ 55 56# Directory containing Tk source code (for library used during test): 57TK_SRC_DIR = @TK_SRC_DIR@ 58 59# Itcl libraries can be found here: 60ITCL_LIB_DIR = @ITCL_LIB_DIR@ 61 62# Directory containing Itcl source code (for library used during test): 63ITCL_SRC_DIR = @ITCL_SRC_DIR@ 64 65# Itk libraries can be found here: 66ITK_LIB_DIR = @ITK_LIB_DIR@ 67 68# Directory containing Itk source code (for library used during test): 69ITK_SRC_DIR = @ITK_SRC_DIR@ 70 71# Some versions of make, like SGI's, use the following variable to 72# determine which shell to use for executing commands: 73SHELL = /bin/sh 74 75#---------------------------------------------------------------- 76# The information below is modified by the configure script when 77# Makefile is generated from Makefile.in. You shouldn't normally 78# modify any of this stuff by hand. 79#---------------------------------------------------------------- 80 81INSTALL=install -c 82INSTALL_PROGRAM=install -s -m 555 83INSTALL_DATA=install -m 0644 84INSTALL_SCRIPT=install -m 555 85MKINSTALLDIRS=/bin/mkdir -p 86RANLIB = @RANLIB@ 87LN_S = ln -s 88TOP_DIR = $(srcdir) 89GENERIC_DIR = $(TOP_DIR)/generic 90UNIX_DIR = $(TOP_DIR)/unix 91 92CYGPATH = @CYGPATH@ 93TCLSH_PROG = @TCLSH_PROG@ 94 95#---------------------------------------------------------------- 96# The information below should be usable as is. The configure 97# script won't modify it and you shouldn't need to modify it 98# either. 99#---------------------------------------------------------------- 100 101info: 102 @echo "Please specify either 'make test' or 'make install'." 103 104all: 105 @echo "Nothing to make for target 'all'. Run 'make test' to \ 106 test the distribution" 107 @echo "and 'make install' to install it." 108 109install: install-libraries install-doc install-demos 110 111test: 112 LD_LIBRARY_PATH=$(ITCL_LIB_DIR):$(ITK_LIB_DIR):$(LD_LIBRARY_PATH); export LD_LIBRARY_PATH ; \ 113 TCL_LIBRARY=$(TCL_SRC_DIR)/library; export TCL_LIBRARY; \ 114 ITCL_LIBRARY=$(ITCL_LIB_DIR); export ITCL_LIBRARY; \ 115 TK_LIBRARY=$(TK_SRC_DIR)/library; export TK_LIBRARY; \ 116 ITK_LIBRARY=$(ITK_LIB_DIR); export ITK_LIBRARY; \ 117 IWIDGETS_LIBRARY=@IWIDGETS_SRC_DIR@; export IWIDGETS_LIBRARY; \ 118 $(TCLSH_PROG) `@CYGPATH@ $(srcdir)/tests/all.tcl` \ 119 -exedir `@CYGPATH@ $(TK_SRC_DIR)/unix` $(TESTFLAGS) 120 121install-libraries: 122 @$(MKINSTALLDIRS) $(SCRIPT_INSTALL_DIR) $(LIB_INSTALL_DIR) 123 @rm -f $(LIB_INSTALL_DIR)/iwidgets 124 $(LN_S) $(SCRIPT_INSTALL_DIR) $(LIB_INSTALL_DIR)/iwidgets 125 @$(MKINSTALLDIRS) $(SCRIPT_INSTALL_DIR)/scripts 126 @echo "Installing source files from $(GENERIC_DIR) into $(SCRIPT_INSTALL_DIR)" 127 @for i in $(GENERIC_DIR)/*.itk $(GENERIC_DIR)/*.itcl $(GENERIC_DIR)/tclIndex $(GENERIC_DIR)/*.gif ; \ 128 do \ 129 $(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/scripts; \ 130 done; 131 @echo "Installing iwidgets.tcl and pkgIndex.tcl into $(SCRIPT_INSTALL_DIR)" 132 @for i in iwidgets.tcl pkgIndex.tcl ; \ 133 do \ 134 $(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR); \ 135 done; 136 137install-demos: 138 @$(MKINSTALLDIRS) $(SCRIPT_INSTALL_DIR)/demos/images $(SCRIPT_INSTALL_DIR)/demos/html 139 @echo "Installing demos from $(srcdir)/demos into $(SCRIPT_INSTALL_DIR)/demos" 140 @for i in $(srcdir)/demos/*; \ 141 do \ 142 if [ -f $$i ] ; then \ 143 $(INSTALL_SCRIPT) $$i $(SCRIPT_INSTALL_DIR)/demos; \ 144 fi; \ 145 done; 146 @echo "Installing images from $(srcdir)/demos/images into $(SCRIPT_INSTALL_DIR)/demos/images" 147 for i in $(srcdir)/demos/images/*; \ 148 do \ 149 if [ -f $$i ] ; then \ 150 $(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/demos/images; \ 151 fi; \ 152 done; 153 @echo "Installing html man pages from $(srcdir)/demos/html into $(SCRIPT_INSTALL_DIR)/demos/html" 154 for i in $(srcdir)/demos/html/*; \ 155 do \ 156 if [ -f $$i ] ; then \ 157 $(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/demos/html; \ 158 fi; \ 159 done; 160 161install-doc: 162 @$(MKINSTALLDIRS) $(MAN_INSTALL_DIR) 163 @echo "Installing man pages from $(TOP_DIR)/doc into $(MAN_INSTALL_DIR)" 164 @cd $(TOP_DIR)/doc; for i in *.n; \ 165 do \ 166 rm -f $(MAN_INSTALL_DIR)/`basename $$i`; \ 167 rm -f $(MAN_INSTALL_DIR)/`basename iwidgets_$$i`; \ 168 sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \ 169 $$i > $(MAN_INSTALL_DIR)/`basename iwidgets_$$i`; \ 170 chmod 444 $(MAN_INSTALL_DIR)/`basename iwidgets_$$i`; \ 171 done; 172 $(INSTALL_DATA) $(srcdir)/license.terms $(SCRIPT_INSTALL_DIR) 173 174Makefile: $(srcdir)/Makefile.in 175 $(SHELL) config.status 176 177clean: 178 rm -f core errs *~ \#* TAGS *.E a.out errors 179 180distclean: clean 181 rm -f Makefile config.status config.cache config.log 182 183depend: 184 makedepend -- $(CC_SWITCHES) -- $(SRCS) 185 186configure: configure.in 187 autoconf 188 189# DO NOT DELETE THIS LINE -- make depend depends on it. 190