[897] | 1 | # Makefile.in -- |
---|
| 2 | # |
---|
| 3 | # This file is a Makefile for Sample TEA Extension. If it has the name |
---|
| 4 | # "Makefile.in" then it is a template for a Makefile; to generate the |
---|
| 5 | # actual Makefile, run "./configure", which is a configuration script |
---|
| 6 | # generated by the "autoconf" program (constructs like "@foo@" will get |
---|
| 7 | # replaced in the actual Makefile. |
---|
| 8 | # |
---|
| 9 | # Copyright (c) 1999 Scriptics Corporation. |
---|
| 10 | # Copyright (c) 2002-2005 ActiveState Corporation. |
---|
| 11 | # |
---|
| 12 | # See the file "license.terms" for information on usage and redistribution |
---|
| 13 | # of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
| 14 | # |
---|
| 15 | # RCS: @(#) $Id: Makefile.in,v 1.60 2005/09/13 22:06:37 hobbs Exp $ |
---|
| 16 | |
---|
| 17 | #======================================================================== |
---|
| 18 | # Add additional lines to handle any additional AC_SUBST cases that |
---|
| 19 | # have been added in a customized configure script. |
---|
| 20 | #======================================================================== |
---|
| 21 | |
---|
| 22 | #SAMPLE_NEW_VAR = @SAMPLE_NEW_VAR@ |
---|
| 23 | |
---|
| 24 | #======================================================================== |
---|
| 25 | # Nothing of the variables below this line should need to be changed. |
---|
| 26 | # Please check the TARGETS section below to make sure the make targets |
---|
| 27 | # are correct. |
---|
| 28 | #======================================================================== |
---|
| 29 | |
---|
| 30 | #======================================================================== |
---|
| 31 | # The names of the source files is defined in the configure script. |
---|
| 32 | # The object files are used for linking into the final library. |
---|
| 33 | # This will be used when a dist target is added to the Makefile. |
---|
| 34 | # It is not important to specify the directory, as long as it is the |
---|
| 35 | # $(srcdir) or in the generic, win or unix subdirectory. |
---|
| 36 | #======================================================================== |
---|
| 37 | |
---|
| 38 | PKG_SOURCES = @PKG_SOURCES@ |
---|
| 39 | PKG_OBJECTS = @PKG_OBJECTS@ |
---|
| 40 | |
---|
| 41 | PKG_STUB_SOURCES = @PKG_STUB_SOURCES@ |
---|
| 42 | PKG_STUB_OBJECTS = @PKG_STUB_OBJECTS@ |
---|
| 43 | |
---|
| 44 | #======================================================================== |
---|
| 45 | # PKG_TCL_SOURCES identifies Tcl runtime files that are associated with |
---|
| 46 | # this package that need to be installed, if any. |
---|
| 47 | #======================================================================== |
---|
| 48 | |
---|
| 49 | PKG_TCL_SOURCES = @PKG_TCL_SOURCES@ |
---|
| 50 | |
---|
| 51 | #======================================================================== |
---|
| 52 | # This is a list of public header files to be installed, if any. |
---|
| 53 | #======================================================================== |
---|
| 54 | |
---|
| 55 | PKG_HEADERS = @PKG_HEADERS@ |
---|
| 56 | |
---|
| 57 | #======================================================================== |
---|
| 58 | # "PKG_LIB_FILE" refers to the library (dynamic or static as per |
---|
| 59 | # configuration options) composed of the named objects. |
---|
| 60 | #======================================================================== |
---|
| 61 | |
---|
| 62 | PKG_LIB_FILE = @PKG_LIB_FILE@ |
---|
| 63 | PKG_STUB_LIB_FILE = @PKG_STUB_LIB_FILE@ |
---|
| 64 | |
---|
| 65 | lib_BINARIES = $(PKG_LIB_FILE) |
---|
| 66 | BINARIES = $(lib_BINARIES) |
---|
| 67 | |
---|
| 68 | SHELL = @SHELL@ |
---|
| 69 | |
---|
| 70 | srcdir = @srcdir@ |
---|
| 71 | prefix = @prefix@ |
---|
| 72 | exec_prefix = @exec_prefix@ |
---|
| 73 | |
---|
| 74 | bindir = @bindir@ |
---|
| 75 | libdir = @libdir@ |
---|
| 76 | datadir = @datadir@ |
---|
| 77 | mandir = @mandir@ |
---|
| 78 | includedir = @includedir@ |
---|
| 79 | |
---|
| 80 | DESTDIR = |
---|
| 81 | |
---|
| 82 | PKG_DIR = $(PACKAGE_NAME)$(PACKAGE_VERSION) |
---|
| 83 | pkgdatadir = $(datadir)/$(PKG_DIR) |
---|
| 84 | pkglibdir = $(libdir)/$(PKG_DIR) |
---|
| 85 | pkgincludedir = $(includedir)/$(PKG_DIR) |
---|
| 86 | |
---|
| 87 | top_builddir = . |
---|
| 88 | |
---|
| 89 | INSTALL = @INSTALL@ |
---|
| 90 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
---|
| 91 | INSTALL_DATA = @INSTALL_DATA@ |
---|
| 92 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
---|
| 93 | |
---|
| 94 | PACKAGE_NAME = @PACKAGE_NAME@ |
---|
| 95 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
---|
| 96 | CC = @CC@ |
---|
| 97 | CXX = @CXX@ |
---|
| 98 | CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ |
---|
| 99 | CFLAGS_WARNING = @CFLAGS_WARNING@ |
---|
| 100 | CLEANFILES = @CLEANFILES@ |
---|
| 101 | EXEEXT = @EXEEXT@ |
---|
| 102 | LDFLAGS_DEFAULT = @LDFLAGS_DEFAULT@ |
---|
| 103 | MAKE_LIB = @MAKE_LIB@ |
---|
| 104 | MAKE_SHARED_LIB = @MAKE_SHARED_LIB@ |
---|
| 105 | MAKE_STATIC_LIB = @MAKE_STATIC_LIB@ |
---|
| 106 | MAKE_STUB_LIB = @MAKE_STUB_LIB@ |
---|
| 107 | OBJEXT = @OBJEXT@ |
---|
| 108 | RANLIB = @RANLIB@ |
---|
| 109 | RANLIB_STUB = @RANLIB_STUB@ |
---|
| 110 | SHLIB_CFLAGS = @SHLIB_CFLAGS@ |
---|
| 111 | SHLIB_LD = @SHLIB_LD@ |
---|
| 112 | SHLIB_LD_LIBS = @SHLIB_LD_LIBS@ |
---|
| 113 | STLIB_LD = @STLIB_LD@ |
---|
| 114 | #TCL_DEFS = @TCL_DEFS@ |
---|
| 115 | TCL_BIN_DIR = @TCL_BIN_DIR@ |
---|
| 116 | TCL_SRC_DIR = @TCL_SRC_DIR@ |
---|
| 117 | #TK_BIN_DIR = @TK_BIN_DIR@ |
---|
| 118 | #TK_SRC_DIR = @TK_SRC_DIR@ |
---|
| 119 | |
---|
| 120 | # Not used, but retained for reference of what libs Tcl required |
---|
| 121 | #TCL_LIBS = @TCL_LIBS@ |
---|
| 122 | |
---|
| 123 | #======================================================================== |
---|
| 124 | # TCLLIBPATH seeds the auto_path in Tcl's init.tcl so we can test our |
---|
| 125 | # package without installing. The other environment variables allow us |
---|
| 126 | # to test against an uninstalled Tcl. Add special env vars that you |
---|
| 127 | # require for testing here (like TCLX_LIBRARY). |
---|
| 128 | #======================================================================== |
---|
| 129 | |
---|
| 130 | EXTRA_PATH = $(top_builddir):$(TCL_BIN_DIR) |
---|
| 131 | #EXTRA_PATH = $(top_builddir):$(TCL_BIN_DIR):$(TK_BIN_DIR) |
---|
| 132 | TCLLIBPATH = $(top_builddir) |
---|
| 133 | TCLSH_ENV = TCL_LIBRARY=`@CYGPATH@ $(TCL_SRC_DIR)/library` \ |
---|
| 134 | @LD_LIBRARY_PATH_VAR@="$(EXTRA_PATH):$(@LD_LIBRARY_PATH_VAR@)" \ |
---|
| 135 | PATH="$(EXTRA_PATH):$(PATH)" \ |
---|
| 136 | TCLLIBPATH="$(TCLLIBPATH)" |
---|
| 137 | # TK_LIBRARY=`@CYGPATH@ $(TK_SRC_DIR)/library` |
---|
| 138 | |
---|
| 139 | TCLSH_PROG = @TCLSH_PROG@ |
---|
| 140 | TCLSH = $(TCLSH_ENV) $(TCLSH_PROG) |
---|
| 141 | |
---|
| 142 | #WISH_PROG = @WISH_PROG@ |
---|
| 143 | #WISH = $(TCLSH_ENV) $(WISH_PROG) |
---|
| 144 | |
---|
| 145 | |
---|
| 146 | SHARED_BUILD = @SHARED_BUILD@ |
---|
| 147 | |
---|
| 148 | INCLUDES = @PKG_INCLUDES@ @TCL_INCLUDES@ |
---|
| 149 | #INCLUDES = @PKG_INCLUDES@ @TCL_INCLUDES@ @TK_INCLUDES@ @TK_XINCLUDES@ |
---|
| 150 | |
---|
| 151 | PKG_CFLAGS = @PKG_CFLAGS@ |
---|
| 152 | |
---|
| 153 | # TCL_DEFS is not strictly need here, but if you remove it, then you |
---|
| 154 | # must make sure that configure.in checks for the necessary components |
---|
| 155 | # that your library may use. TCL_DEFS can actually be a problem if |
---|
| 156 | # you do not compile with a similar machine setup as the Tcl core was |
---|
| 157 | # compiled with. |
---|
| 158 | #DEFS = $(TCL_DEFS) @DEFS@ $(PKG_CFLAGS) |
---|
| 159 | DEFS = @DEFS@ $(PKG_CFLAGS) |
---|
| 160 | |
---|
| 161 | CONFIG_CLEAN_FILES = Makefile |
---|
| 162 | |
---|
| 163 | CPPFLAGS = @CPPFLAGS@ |
---|
| 164 | LIBS = @PKG_LIBS@ @LIBS@ |
---|
| 165 | AR = @AR@ |
---|
| 166 | CFLAGS = @CFLAGS@ |
---|
| 167 | COMPILE = $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) |
---|
| 168 | |
---|
| 169 | #======================================================================== |
---|
| 170 | # Start of user-definable TARGETS section |
---|
| 171 | #======================================================================== |
---|
| 172 | |
---|
| 173 | #======================================================================== |
---|
| 174 | # TEA TARGETS. Please note that the "libraries:" target refers to platform |
---|
| 175 | # independent files, and the "binaries:" target inclues executable programs and |
---|
| 176 | # platform-dependent libraries. Modify these targets so that they install |
---|
| 177 | # the various pieces of your package. The make and install rules |
---|
| 178 | # for the BINARIES that you specified above have already been done. |
---|
| 179 | #======================================================================== |
---|
| 180 | |
---|
| 181 | all: binaries libraries doc |
---|
| 182 | |
---|
| 183 | #======================================================================== |
---|
| 184 | # The binaries target builds executable programs, Windows .dll's, unix |
---|
| 185 | # shared/static libraries, and any other platform-dependent files. |
---|
| 186 | # The list of targets to build for "binaries:" is specified at the top |
---|
| 187 | # of the Makefile, in the "BINARIES" variable. |
---|
| 188 | #======================================================================== |
---|
| 189 | |
---|
| 190 | binaries: $(BINARIES) |
---|
| 191 | |
---|
| 192 | libraries: |
---|
| 193 | |
---|
| 194 | |
---|
| 195 | #======================================================================== |
---|
| 196 | # Your doc target should differentiate from doc builds (by the developer) |
---|
| 197 | # and doc installs (see install-doc), which just install the docs on the |
---|
| 198 | # end user machine when building from source. |
---|
| 199 | #======================================================================== |
---|
| 200 | |
---|
| 201 | doc: |
---|
| 202 | # @echo "If you have documentation to create, place the commands to" |
---|
| 203 | # @echo "build the docs in the 'doc:' target. For example:" |
---|
| 204 | # @echo " xml2nroff sample.xml > sample.n" |
---|
| 205 | # @echo " xml2html sample.xml > sample.html" |
---|
| 206 | |
---|
| 207 | install: all install-binaries install-libraries install-doc |
---|
| 208 | |
---|
| 209 | install-binaries: binaries install-lib-binaries install-bin-binaries |
---|
| 210 | |
---|
| 211 | #======================================================================== |
---|
| 212 | # This rule installs platform-independent files, such as header files. |
---|
| 213 | # The list=...; for p in $$list handles the empty list case x-platform. |
---|
| 214 | #======================================================================== |
---|
| 215 | |
---|
| 216 | install-libraries: libraries |
---|
| 217 | @mkdir -p $(DESTDIR)$(includedir) |
---|
| 218 | @echo "Installing header files in $(DESTDIR)$(includedir)" |
---|
| 219 | @list='$(PKG_HEADERS)'; for i in $$list; do \ |
---|
| 220 | echo "Installing $(srcdir)/$$i" ; \ |
---|
| 221 | $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir) ; \ |
---|
| 222 | done; |
---|
| 223 | |
---|
| 224 | #======================================================================== |
---|
| 225 | # Install documentation. Unix manpages should go in the $(mandir) |
---|
| 226 | # directory. |
---|
| 227 | #======================================================================== |
---|
| 228 | |
---|
| 229 | install-doc: doc |
---|
| 230 | # @mkdir -p $(DESTDIR)$(mandir)/mann |
---|
| 231 | # @echo "Installing documentation in $(DESTDIR)$(mandir)" |
---|
| 232 | # @list='$(srcdir)/doc/*.n'; for i in $$list; do \ |
---|
| 233 | # echo "Installing $$i"; \ |
---|
| 234 | # rm -f $(DESTDIR)$(mandir)/mann/`basename $$i`; \ |
---|
| 235 | # $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \ |
---|
| 236 | # done |
---|
| 237 | |
---|
| 238 | test: binaries libraries |
---|
| 239 | $(TCLSH) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS) |
---|
| 240 | |
---|
| 241 | shell: binaries libraries |
---|
| 242 | @$(TCLSH) $(SCRIPT) |
---|
| 243 | |
---|
| 244 | gdb: |
---|
| 245 | $(TCLSH_ENV) gdb $(TCLSH_PROG) $(SCRIPT) |
---|
| 246 | |
---|
| 247 | depend: |
---|
| 248 | |
---|
| 249 | #======================================================================== |
---|
| 250 | # $(PKG_LIB_FILE) should be listed as part of the BINARIES variable |
---|
| 251 | # mentioned above. That will ensure that this target is built when you |
---|
| 252 | # run "make binaries". |
---|
| 253 | # |
---|
| 254 | # The $(PKG_OBJECTS) objects are created and linked into the final |
---|
| 255 | # library. In most cases these object files will correspond to the |
---|
| 256 | # source files above. |
---|
| 257 | #======================================================================== |
---|
| 258 | |
---|
| 259 | $(PKG_LIB_FILE): $(PKG_OBJECTS) |
---|
| 260 | -rm -f $(PKG_LIB_FILE) |
---|
| 261 | ${MAKE_LIB} |
---|
| 262 | $(RANLIB) $(PKG_LIB_FILE) |
---|
| 263 | |
---|
| 264 | $(PKG_STUB_LIB_FILE): $(PKG_STUB_OBJECTS) |
---|
| 265 | -rm -f $(PKG_STUB_LIB_FILE) |
---|
| 266 | ${MAKE_STUB_LIB} |
---|
| 267 | $(RANLIB_STUB) $(PKG_STUB_LIB_FILE) |
---|
| 268 | |
---|
| 269 | #======================================================================== |
---|
| 270 | # We need to enumerate the list of .c to .o lines here. |
---|
| 271 | # |
---|
| 272 | # In the following lines, $(srcdir) refers to the toplevel directory |
---|
| 273 | # containing your extension. If your sources are in a subdirectory, |
---|
| 274 | # you will have to modify the paths to reflect this: |
---|
| 275 | # |
---|
| 276 | # sample.$(OBJEXT): $(srcdir)/generic/sample.c |
---|
| 277 | # $(COMPILE) -c `@CYGPATH@ $(srcdir)/generic/sample.c` -o $@ |
---|
| 278 | # |
---|
| 279 | # Setting the VPATH variable to a list of paths will cause the makefile |
---|
| 280 | # to look into these paths when resolving .c to .obj dependencies. |
---|
| 281 | # As necessary, add $(srcdir):$(srcdir)/compat:.... |
---|
| 282 | #======================================================================== |
---|
| 283 | |
---|
| 284 | VPATH = $(srcdir):$(srcdir)/src:$(srcdir)/unix:$(srcdir)/win |
---|
| 285 | |
---|
| 286 | .c.@OBJEXT@: |
---|
| 287 | $(CC) $(COMPILE) -c `@CYGPATH@ $<` -o $@ |
---|
| 288 | .cc.@OBJEXT@: |
---|
| 289 | $(CXX) $(COMPILE) -c `@CYGPATH@ $<` -o $@ |
---|
| 290 | .cpp.@OBJEXT@: |
---|
| 291 | $(CXX) $(COMPILE) -c `@CYGPATH@ $<` -o $@ |
---|
| 292 | |
---|
| 293 | #======================================================================== |
---|
| 294 | # Distribution creation |
---|
| 295 | # You may need to tweak this target to make it work correctly. |
---|
| 296 | #======================================================================== |
---|
| 297 | |
---|
| 298 | #COMPRESS = tar cvf $(PKG_DIR).tar $(PKG_DIR); compress $(PKG_DIR).tar |
---|
| 299 | COMPRESS = gtar zcvf $(PKG_DIR).tar.gz $(PKG_DIR) |
---|
| 300 | DIST_ROOT = /tmp/dist |
---|
| 301 | DIST_DIR = $(DIST_ROOT)/$(PKG_DIR) |
---|
| 302 | |
---|
| 303 | dist-clean: |
---|
| 304 | rm -rf $(DIST_DIR) $(DIST_ROOT)/$(PKG_DIR).tar.* |
---|
| 305 | |
---|
| 306 | dist: dist-clean |
---|
| 307 | mkdir -p $(DIST_DIR) |
---|
| 308 | cp -p $(srcdir)/ChangeLog $(srcdir)/README* $(srcdir)/license* \ |
---|
| 309 | $(srcdir)/aclocal.m4 $(srcdir)/configure $(srcdir)/*.in \ |
---|
| 310 | $(DIST_DIR)/ |
---|
| 311 | chmod 664 $(DIST_DIR)/Makefile.in $(DIST_DIR)/aclocal.m4 |
---|
| 312 | chmod 775 $(DIST_DIR)/configure $(DIST_DIR)/configure.in |
---|
| 313 | |
---|
| 314 | for i in $(srcdir)/*.[ch]; do \ |
---|
| 315 | if [ -f $$i ]; then \ |
---|
| 316 | cp -p $$i $(DIST_DIR)/ ; \ |
---|
| 317 | fi; \ |
---|
| 318 | done; |
---|
| 319 | |
---|
| 320 | mkdir $(DIST_DIR)/tclconfig |
---|
| 321 | cp $(srcdir)/tclconfig/install-sh $(srcdir)/tclconfig/tcl.m4 \ |
---|
| 322 | $(DIST_DIR)/tclconfig/ |
---|
| 323 | chmod 664 $(DIST_DIR)/tclconfig/tcl.m4 |
---|
| 324 | chmod +x $(DIST_DIR)/tclconfig/install-sh |
---|
| 325 | |
---|
| 326 | list='demos doc generic library mac tests unix win'; \ |
---|
| 327 | for p in $$list; do \ |
---|
| 328 | if test -d $(srcdir)/$$p ; then \ |
---|
| 329 | mkdir $(DIST_DIR)/$$p; \ |
---|
| 330 | cp -p $(srcdir)/$$p/*.* $(DIST_DIR)/$$p/; \ |
---|
| 331 | fi; \ |
---|
| 332 | done |
---|
| 333 | |
---|
| 334 | (cd $(DIST_ROOT); $(COMPRESS);) |
---|
| 335 | |
---|
| 336 | #======================================================================== |
---|
| 337 | # End of user-definable section |
---|
| 338 | #======================================================================== |
---|
| 339 | |
---|
| 340 | #======================================================================== |
---|
| 341 | # Don't modify the file to clean here. Instead, set the "CLEANFILES" |
---|
| 342 | # variable in configure.in |
---|
| 343 | #======================================================================== |
---|
| 344 | |
---|
| 345 | clean: |
---|
| 346 | -test -z "$(BINARIES)" || rm -f $(BINARIES) |
---|
| 347 | -rm -f *.$(OBJEXT) core *.core |
---|
| 348 | -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) |
---|
| 349 | |
---|
| 350 | distclean: clean |
---|
| 351 | -rm -f *.tab.c |
---|
| 352 | -rm -f $(CONFIG_CLEAN_FILES) |
---|
| 353 | -rm -f config.cache config.log config.status |
---|
| 354 | |
---|
| 355 | #======================================================================== |
---|
| 356 | # Install binary object libraries. On Windows this includes both .dll and |
---|
| 357 | # .lib files. Because the .lib files are not explicitly listed anywhere, |
---|
| 358 | # we need to deduce their existence from the .dll file of the same name. |
---|
| 359 | # Library files go into the lib directory. |
---|
| 360 | # In addition, this will generate the pkgIndex.tcl |
---|
| 361 | # file in the install location (assuming it can find a usable tclsh shell) |
---|
| 362 | # |
---|
| 363 | # You should not have to modify this target. |
---|
| 364 | #======================================================================== |
---|
| 365 | |
---|
| 366 | install-lib-binaries: binaries |
---|
| 367 | @mkdir -p $(DESTDIR)$(pkglibdir) |
---|
| 368 | @list='$(lib_BINARIES)'; for p in $$list; do \ |
---|
| 369 | if test -f $$p; then \ |
---|
| 370 | echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p"; \ |
---|
| 371 | $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p; \ |
---|
| 372 | stub=`echo $$p|sed -e "s/.*\(stub\).*/\1/"`; \ |
---|
| 373 | if test "x$$stub" = "xstub"; then \ |
---|
| 374 | echo " $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p"; \ |
---|
| 375 | $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p; \ |
---|
| 376 | else \ |
---|
| 377 | echo " $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p"; \ |
---|
| 378 | $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p; \ |
---|
| 379 | fi; \ |
---|
| 380 | ext=`echo $$p|sed -e "s/.*\.//"`; \ |
---|
| 381 | if test "x$$ext" = "xdll"; then \ |
---|
| 382 | lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \ |
---|
| 383 | if test -f $$lib; then \ |
---|
| 384 | echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib"; \ |
---|
| 385 | $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib; \ |
---|
| 386 | fi; \ |
---|
| 387 | fi; \ |
---|
| 388 | fi; \ |
---|
| 389 | done |
---|
| 390 | @mkdir -p $(DESTDIR)$(pkglibdir)/scripts |
---|
| 391 | @list='$(PKG_TCL_SOURCES)'; for p in $$list; do \ |
---|
| 392 | if test -f $(srcdir)/$$p; then \ |
---|
| 393 | destp=`basename $$p`; \ |
---|
| 394 | echo " Install $$destp $(DESTDIR)$(pkglibdir)/scripts/$$destp"; \ |
---|
| 395 | $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkglibdir)/scripts/$$destp; \ |
---|
| 396 | fi; \ |
---|
| 397 | done |
---|
| 398 | @if test "x$(SHARED_BUILD)" = "x1"; then \ |
---|
| 399 | echo " Install pkgIndex.tcl $(DESTDIR)$(pkglibdir)"; \ |
---|
| 400 | $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir); \ |
---|
| 401 | fi |
---|
| 402 | |
---|
| 403 | #======================================================================== |
---|
| 404 | # Install binary executables (e.g. .exe files and dependent .dll files) |
---|
| 405 | # This is for files that must go in the bin directory (located next to |
---|
| 406 | # wish and tclsh), like dependent .dll files on Windows. |
---|
| 407 | # |
---|
| 408 | # You should not have to modify this target, except to define bin_BINARIES |
---|
| 409 | # above if necessary. |
---|
| 410 | #======================================================================== |
---|
| 411 | |
---|
| 412 | install-bin-binaries: binaries |
---|
| 413 | @mkdir -p $(DESTDIR)$(bindir) |
---|
| 414 | @list='$(bin_BINARIES)'; for p in $$list; do \ |
---|
| 415 | if test -f $$p; then \ |
---|
| 416 | echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p"; \ |
---|
| 417 | $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p; \ |
---|
| 418 | fi; \ |
---|
| 419 | done |
---|
| 420 | |
---|
| 421 | .SUFFIXES: .c .$(OBJEXT) |
---|
| 422 | |
---|
| 423 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
---|
| 424 | cd $(top_builddir) \ |
---|
| 425 | && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|
| 426 | |
---|
| 427 | uninstall-binaries: |
---|
| 428 | list='$(lib_BINARIES)'; for p in $$list; do \ |
---|
| 429 | rm -f $(DESTDIR)$(pkglibdir)/$$p; \ |
---|
| 430 | done |
---|
| 431 | list='$(PKG_TCL_SOURCES)'; for p in $$list; do \ |
---|
| 432 | p=`basename $$p`; \ |
---|
| 433 | rm -f $(DESTDIR)$(pkglibdir)/$$p; \ |
---|
| 434 | done |
---|
| 435 | list='$(bin_BINARIES)'; for p in $$list; do \ |
---|
| 436 | rm -f $(DESTDIR)$(bindir)/$$p; \ |
---|
| 437 | done |
---|
| 438 | |
---|
| 439 | .PHONY: all binaries clean depend distclean doc install libraries test |
---|
| 440 | |
---|
| 441 | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
---|
| 442 | # Otherwise a system limit (for SysV at least) may be exceeded. |
---|
| 443 | .NOEXPORT: |
---|