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 ActiveState SRL.
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.18 2010/06/13 19:44:53 treectrl Exp $
16
17#========================================================================
18# Edit the following few lines when writing a new extension
19#========================================================================
20
21#========================================================================
22# Nothing of the variables below this line need to be changed.  Please
23# check the TARGETS section below to make sure the make targets are
24# correct.
25#========================================================================
26
27#========================================================================
28# The names of the source files is defined in the configure script.
29# The object files are used for linking into the final library.
30# This will be used when a dist target is added to the Makefile.
31# It is not important to specify the directory, as long as it is the
32# $(srcdir) or in the generic, win or unix subdirectory.
33#========================================================================
34
35PKG_SOURCES	= @PKG_SOURCES@
36PKG_OBJECTS	= @PKG_OBJECTS@
37
38#========================================================================
39# PKG_TCL_SOURCES identifies Tcl runtime files that are associated with
40# this package that need to be installed, if any.
41#========================================================================
42
43PKG_TCL_SOURCES = @PKG_TCL_SOURCES@
44
45#========================================================================
46# This is a list of public header files to be installed, if any.
47#========================================================================
48
49PKG_HEADERS	= @PKG_HEADERS@
50
51PKG_EXTRA_FILES = 
52
53PKG_MAN_PAGES	= 
54
55#========================================================================
56# "PKG_LIB_FILE" refers to the library (dynamic or static as per
57# configuration options) composed of the named objects.
58#========================================================================
59
60PKG_LIB_FILE	= @PKG_LIB_FILE@
61PKG_STUB_LIB_FILE = @PKG_STUB_LIB_FILE@
62
63lib_BINARIES	= $(PKG_LIB_FILE)
64BINARIES	= $(lib_BINARIES)
65
66SHELL		= @SHELL@
67
68srcdir		= @srcdir@
69prefix		= @prefix@
70exec_prefix	= @exec_prefix@
71
72bindir		= @bindir@
73libdir		= @libdir@
74datadir		= @datadir@
75datarootdir     = @datarootdir@
76mandir		= @mandir@
77includedir	= @includedir@
78
79DESTDIR		=
80
81PKG_DIR		= $(PACKAGE_NAME)$(PACKAGE_PATCHLEVEL)
82pkgdatadir	= $(datadir)/$(PKG_DIR)
83pkglibdir	= $(libdir)/$(PKG_DIR)
84pkgincludedir	= $(includedir)/$(PKG_DIR)
85
86top_builddir	= .
87
88INSTALL		= @INSTALL@
89INSTALL_PROGRAM	= @INSTALL_PROGRAM@
90INSTALL_DATA	= @INSTALL_DATA@
91INSTALL_SCRIPT	= @INSTALL_SCRIPT@
92
93PACKAGE_NAME	= @PACKAGE_NAME@
94PACKAGE_VERSION	= @PACKAGE_VERSION@
95PACKAGE_PATCHLEVEL	= @PACKAGE_PATCHLEVEL@
96CC		= @CC@
97CFLAGS_DEFAULT	= @CFLAGS_DEFAULT@
98CFLAGS_WARNING	= @CFLAGS_WARNING@
99CLEANFILES	= @CLEANFILES@
100EXEEXT		= @EXEEXT@
101LDFLAGS_DEFAULT	= @LDFLAGS_DEFAULT@
102MAKE_LIB	= @MAKE_LIB@
103MAKE_SHARED_LIB	= @MAKE_SHARED_LIB@
104MAKE_STATIC_LIB	= @MAKE_STATIC_LIB@
105MAKE_STUB_LIB	= @MAKE_STUB_LIB@
106OBJEXT		= @OBJEXT@
107RANLIB		= @RANLIB@
108RANLIB_STUB	= @RANLIB_STUB@
109SHLIB_CFLAGS	= @SHLIB_CFLAGS@
110SHLIB_LD	= @SHLIB_LD@
111SHLIB_LD_LIBS	= @SHLIB_LD_LIBS@
112STLIB_LD	= @STLIB_LD@
113TCL_DEFS	= @TCL_DEFS@
114TCL_SRC_DIR	= @TCL_SRC_DIR@
115TCL_BIN_DIR	= @TCL_BIN_DIR@
116TK_SRC_DIR	= @TK_SRC_DIR@
117TK_BIN_DIR	= @TK_BIN_DIR@
118# Not used, but retained for reference of what libs Tcl required
119TCL_LIBS	= @TCL_LIBS@
120TK_LIBS		= @TK_LIBS@
121
122#========================================================================
123# TCLLIBPATH seeds the auto_path in Tcl's init.tcl so we can test our
124# package without installing.  The other environment variables allow us
125# to test against an uninstalled Tcl.  Add special env vars that you
126# require for testing here (like TCLX_LIBRARY).
127#========================================================================
128
129EXTRA_PATH	= $(top_builddir):$(TCL_BIN_DIR):$(TK_BIN_DIR)
130TCLSH_ENV	= TCL_LIBRARY=`@CYGPATH@ $(TCL_SRC_DIR)/library` \
131		  TK_LIBRARY=`@CYGPATH@ $(TK_SRC_DIR)/library` \
132		  TREECTRL_LIBRARY=`@CYGPATH@ $(srcdir)/library` \
133		  @LD_LIBRARY_PATH_VAR@="$(EXTRA_PATH):$(@LD_LIBRARY_PATH_VAR@)" \
134		  PATH="$(EXTRA_PATH):$(PATH)" \
135		  TCLLIBPATH="$(top_builddir)"
136TCLSH_PROG	= @TCLSH_PROG@
137WISH_PROG	= @WISH_PROG@
138TCLSH		= $(TCLSH_ENV) $(TCLSH_PROG)
139WISH		= $(TCLSH_ENV) $(WISH_PROG)
140
141# The local includes must come first, because the TK_XINCLUDES can be
142# just a comment
143INCLUDES	= @PKG_INCLUDES@ \
144		  @TCL_INCLUDES@ @TK_INCLUDES@ @TK_XINCLUDES@
145
146PKG_CFLAGS	= @PKG_CFLAGS@
147
148DEFS		= @DEFS@ $(PKG_CFLAGS)
149
150CONFIG_CLEAN_FILES = Makefile
151
152CPPFLAGS	= @CPPFLAGS@
153LIBS		= @PKG_LIBS@ @LIBS@
154AR		= @AR@
155CFLAGS		= @CFLAGS@
156COMPILE		= $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
157
158#========================================================================
159# Start of user-definable TARGETS section
160#========================================================================
161
162#========================================================================
163# TEA TARGETS.  Please note that the "libraries:" target refers to platform
164# independent files, and the "binaries:" target inclues executable programs and
165# platform-dependent libraries.  Modify these targets so that they install
166# the various pieces of your package.  The make and install rules
167# for the BINARIES that you specified above have already been done.
168#========================================================================
169
170all: binaries libraries doc
171
172#========================================================================
173# The binaries target builds executable programs, Windows .dll's, unix
174# shared/static libraries, and any other platform-dependent files.
175# The list of targets to build for "binaries:" is specified at the top
176# of the Makefile, in the "BINARIES" variable.
177#========================================================================
178
179binaries: $(BINARIES) pkgIndex.tcl
180
181libraries:
182
183doc-x:
184	@echo "If you have documentation to create, place the commands to"
185	@echo "build the docs in the 'doc:' target.  For example:"
186	@echo "        xml2nroff sample.xml > sample.n"
187	@echo "        xml2html sample.xml > sample.html"
188
189doc:
190	@echo "No docs to build"
191
192install: all install-binaries install-libraries install-doc
193
194install-binaries: binaries install-lib-binaries install-bin-binaries
195	@mkdir -p $(DESTDIR)$(pkglibdir)
196	$(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir)
197	@list='$(PKG_EXTRA_FILES)'; for p in $$list; do \
198	  if test -f $(srcdir)/$$p; then \
199	    destp=`basename $$p`; \
200	    echo " Install $$destp $(DESTDIR)$(pkglibdir)/$$destp"; \
201	    $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkglibdir)/$$destp; \
202	  fi; \
203	done
204
205#========================================================================
206# This rule installs platform-independent files, such as header files.
207#========================================================================
208
209install-libraries: libraries
210
211#========================================================================
212# Install documentation.  Unix manpages should go in the $(mandir)
213# directory.
214#========================================================================
215
216install-doc-x:
217	@mkdir -p $(DESTDIR)$(mandir)/mann
218	@echo "Installing documentation in $(DESTDIR)$(mandir)"
219	@for i in $(srcdir)/doc/*.n; do \
220	    echo "Installing $$i"; \
221	    rm -f $(DESTDIR)$(mandir)/mann/`basename $$i`; \
222	    $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \
223	done
224
225install-doc: install-doc-x
226	mkdir -p $(DESTDIR)$(pkglibdir)/htmldoc
227	cp $(srcdir)/doc/*.html $(DESTDIR)$(pkglibdir)/htmldoc
228
229test: binaries libraries
230	$(WISH) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS) | cat
231
232shell: binaries libraries
233	@$(WISH) $(SCRIPT)
234
235demo: binaries libraries
236	@$(WISH) `@CYGPATH@ $(srcdir)/demos/demo.tcl` | cat
237
238gdb:
239	$(TCLSH_ENV) gdb --silent --args $(WISH_PROG) $(srcdir)/demos/demo.tcl
240
241depend:
242
243#========================================================================
244# $(PKG_LIB_FILE) should be listed as part of the BINARIES variable
245# mentioned above.  That will ensure that this target is built when you
246# run "make binaries".
247#
248# The $(PKG_OBJECTS) objects are created and linked into the final
249# library.  In most cases these object files will correspond to the
250# source files above.
251#
252# NOTE regarding the manifest(s):  When building on a non-Windows box the
253# treectrlNN.dll.manifest file should not exist.  When building with
254# MingW GCC the manifest will also not exist.  Only when building with
255# a Microsoft compiler that auto-generates a manifest (to pick the correct
256# MSVCRT runtime) will $@.manifest exist; in this case mt.exe should
257# also exist.  If mt.exe is used there is actually no need for treectrl.rc
258# to include treectrl.dll.manifest since mt.exe will clobber that resource
259# with the merged manifests.
260#========================================================================
261
262$(PKG_LIB_FILE): $(PKG_OBJECTS)
263	-rm -f $(PKG_LIB_FILE)
264	${MAKE_LIB}
265	$(RANLIB) $(PKG_LIB_FILE)
266	if test -f $@.manifest; then \
267	    mt -nologo -manifest $@.manifest treectrl.dll.manifest "-outputresource:$@;#2"; \
268	fi;
269
270#========================================================================
271# In the following lines, $(srcdir) refers to the toplevel directory
272# containing your extension.  If your sources are in a subdirectory,
273# you will have to modify the paths to reflect this:
274#
275# tkpkg.$(OBJEXT): $(srcdir)/src/win/tkpkg.c
276# 	$(COMPILE) -c `@CYGPATH@ $(srcdir)/generic/tkpkg.c` -o $@
277#
278# Setting the VPATH variable to a list of paths will cause the 
279# makefile to look into these paths when resolving .c to .obj
280# dependencies.
281#========================================================================
282
283# I added leading $(srcdir) because autoconf 2.53 strips it off
284VPATH = $(srcdir):$(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win
285
286.c.@OBJEXT@:
287	$(COMPILE) -c `@CYGPATH@ $<` -o $@
288
289.rc.@RES@:
290	@RC@ @RC_OUT@ $@ @RC_INCLUDE@ "`@CYGPATH@ $(srcdir)`" @RC_DEPARG@
291
292#========================================================================
293# Create the pkgIndex.tcl file.
294#========================================================================
295
296pkgIndex.tcl:
297	(\
298	echo 'if {[catch {package require Tcl @TK_VERSION@}]} return';\
299	echo 'set script ""';\
300	echo 'if {![info exists ::env(TREECTRL_LIBRARY)]';\
301	echo '    && [file exists [file join $$dir treectrl.tcl]]} {';\
302	echo '    append script "[list set ::treectrl_library $$dir]\n"';\
303	echo '}';\
304	echo 'append script [list load [file join $$dir $(PKG_LIB_FILE)] $(PACKAGE_NAME)]';\
305	echo 'package ifneeded $(PACKAGE_NAME) $(PACKAGE_PATCHLEVEL) $$script'\
306	) > pkgIndex.tcl
307
308#========================================================================
309# Distribution creation
310# You may need to tweak this target to make it work correctly.
311#========================================================================
312
313#COMPRESS	= tar cvf $(PKG_DIR).tar $(PKG_DIR); compress $(PKG_DIR).tar
314#COMPRESS	= gtar zcvf $(PKG_DIR).tar.gz $(PKG_DIR)
315DIST_NAME	= tktreectrl-$(PACKAGE_PATCHLEVEL)
316DIST_ARC	= $(DIST_NAME).tar.gz
317COMPRESS	= tar zcvf $(DIST_ARC) $(DIST_NAME)
318DIST_ROOT	= /tmp/dist
319DIST_DIR	= $(DIST_ROOT)/$(DIST_NAME)
320
321DIST_DEMOS	= biglist bitmaps column-lock demo explorer firefox help \
322		  imovie layout mailwasher mycomputer outlook-folders \
323		  outlook-newgroup random span style-editor textvariable \
324		  www-options
325
326DIST_DOCS	= man.macros treectrl.html treectrl.man treectrl.n
327DIST_DOCS2	= "What's New in TkTreeCtrl.html"
328
329DIST_LIBRARY	= filelist-bindings.tcl treectrl.tcl
330
331dist-clean:
332	rm -rf $(DIST_DIR) $(DIST_ROOT)/$(DIST_ARC)
333
334dist: dist-clean
335	mkdir -p $(DIST_DIR)
336	mkdir -p $(DIST_DIR)/demos
337	mkdir -p $(DIST_DIR)/demos/pics
338	mkdir -p $(DIST_DIR)/doc
339	mkdir -p $(DIST_DIR)/generic
340	mkdir -p $(DIST_DIR)/library
341	mkdir -p $(DIST_DIR)/shellicon
342	mkdir -p $(DIST_DIR)/shellicon/tclconfig
343	mkdir -p $(DIST_DIR)/tclconfig
344	mkdir -p $(DIST_DIR)/tests
345
346	list='aclocal.m4 ChangeLog configure configure.ac license.terms Makefile.in README.txt treectrl.dll.manifest.in treectrl.rc winrc.m4'; \
347	for p in $$list; do \
348	    cp -p $(srcdir)/$$p $(DIST_DIR)/$$p; \
349	    chmod 664 $(DIST_DIR)/$$p; \
350	done
351	chmod 775 $(DIST_DIR)/configure $(DIST_DIR)/configure.ac
352
353	list='$(DIST_DEMOS)'; for p in $$list; do \
354	    cp -p $(srcdir)/demos/$$p.tcl $(DIST_DIR)/demos/$$p.tcl; \
355	    chmod 664 $(DIST_DIR)/demos/$$p.tcl; \
356	done
357
358	cp -p $(srcdir)/demos/pics/*.gif $(DIST_DIR)/demos/pics/
359	chmod 664 $(DIST_DIR)/demos/pics/*.gif
360
361	list='$(DIST_DOCS)'; for p in $$list; do \
362	    cp -p $(srcdir)/doc/$$p $(DIST_DIR)/doc/$$p; \
363	    chmod 664 $(DIST_DIR)/doc/$$p; \
364	done
365	cp -p $(srcdir)/doc/$(DIST_DOCS2) $(DIST_DIR)/doc/$(DIST_DOCS2)
366	chmod 664 $(DIST_DIR)/doc/$(DIST_DOCS2)
367
368	cp -p $(srcdir)/generic/*.[ch] $(DIST_DIR)/generic/
369	chmod 664 $(DIST_DIR)/generic/*.[ch]
370
371	list='$(DIST_LIBRARY)'; for p in $$list; do \
372	    cp -p $(srcdir)/library/$$p $(DIST_DIR)/library/$$p; \
373	    chmod 664 $(DIST_DIR)/library/$$p; \
374	done
375
376	list='aclocal.m4 configure configure.ac Makefile.in shellicon.c'; \
377	for p in $$list; do \
378	    cp -p $(srcdir)/shellicon/$$p $(DIST_DIR)/shellicon/$$p; \
379	    chmod 664 $(DIST_DIR)/shellicon/$$p; \
380	done
381	chmod 775 $(DIST_DIR)/shellicon/configure $(DIST_DIR)/shellicon/configure.ac
382
383	list='install-sh README.txt tcl.m4'; \
384	for p in $$list; do \
385	    cp -p $(srcdir)/shellicon/tclconfig/$$p $(DIST_DIR)/shellicon/tclconfig/$$p; \
386	    chmod 664 $(DIST_DIR)/shellicon/tclconfig/$$p; \
387	done
388	chmod 775 $(DIST_DIR)/shellicon/tclconfig/install-sh
389
390	list='install-sh tcl.m4'; \
391	for p in $$list; do \
392	    cp $(srcdir)/tclconfig/$$p $(DIST_DIR)/tclconfig/$$p; \
393	done
394	chmod 664 $(DIST_DIR)/tclconfig/tcl.m4
395	chmod 775 $(DIST_DIR)/tclconfig/install-sh
396
397	cp -p $(srcdir)/tests/all.tcl $(srcdir)/tests/*.test $(DIST_DIR)/tests/
398	chmod 664 $(DIST_DIR)/tests/all.tcl
399	chmod 664 $(DIST_DIR)/tests/*.test
400
401	(cd $(DIST_ROOT); $(COMPRESS);)
402
403#========================================================================
404# Windows binary distribution
405#========================================================================
406
407DIST_WIN_NAME	= treectrl$(PACKAGE_PATCHLEVEL)
408DIST_WIN_DIR	= $(DIST_ROOT)/$(DIST_WIN_NAME)
409DIST_WIN_ARC	= tktreectrl-$(PACKAGE_PATCHLEVEL)-Tk@TK_VERSION@-win32.zip
410COMPRESS_WIN	= zip -r -v -9 $(DIST_WIN_ARC) $(DIST_WIN_NAME)
411
412# An update to the gcc tools adds support for TLS callbacks which upx chokes on
413# UPX		= upx -9 $(DIST_WIN_DIR)/$(PKG_LIB_FILE)
414UPX		=
415
416dist-win-clean:
417	rm -rf $(DIST_WIN_DIR) $(DIST_ROOT)/$(DIST_WIN_ARC)
418
419dist-win: dist-win-clean
420	mkdir -p $(DIST_WIN_DIR)
421	mkdir -p $(DIST_WIN_DIR)/demos
422	mkdir -p $(DIST_WIN_DIR)/demos/pics
423	mkdir -p $(DIST_WIN_DIR)/doc
424	mkdir -p $(DIST_WIN_DIR)/shellicon
425
426	list='pkgIndex.tcl $(PKG_LIB_FILE)'; \
427	for p in $$list; do \
428	    cp -p $(top_builddir)/$$p $(DIST_WIN_DIR)/$$p; \
429	done
430
431	list='license.terms README.txt'; \
432	for p in $$list; do \
433	    cp -p $(srcdir)/$$p $(DIST_WIN_DIR)/$$p; \
434	done
435
436	strip -s $(DIST_WIN_DIR)/$(PKG_LIB_FILE)
437	$(UPX)
438
439	list='$(DIST_LIBRARY)'; for p in $$list; do \
440	    cp -p $(srcdir)/library/$$p $(DIST_WIN_DIR)/$$p; \
441	done
442
443	list='$(DIST_DEMOS)'; for p in $$list; do \
444	    cp -p $(srcdir)/demos/$$p.tcl $(DIST_WIN_DIR)/demos/$$p.tcl; \
445	done
446
447	cp -p $(srcdir)/demos/pics/*.gif $(DIST_WIN_DIR)/demos/pics/
448
449	list='$(DIST_DOCS)'; for p in $$list; do \
450	    cp -p $(srcdir)/doc/$$p $(DIST_WIN_DIR)/doc/$$p; \
451	done
452	cp -p $(srcdir)/doc/$(DIST_DOCS2) $(DIST_WIN_DIR)/doc/$(DIST_DOCS2)
453
454	TCL_TRIM_DOTS=`echo $(PACKAGE_VERSION) | tr -d .`; \
455	SHELLICON_DLL="shellicon$$TCL_TRIM_DOTS.dll"; \
456	cp -p $(top_builddir)/shellicon/$$SHELLICON_DLL $(DIST_WIN_DIR)/shellicon/$$SHELLICON_DLL; \
457	strip -s $(DIST_WIN_DIR)/shellicon/$$SHELLICON_DLL;
458	cp -p $(top_builddir)/shellicon/pkgIndex.tcl $(DIST_WIN_DIR)/shellicon/pkgIndex.tcl
459
460	(cd $(DIST_ROOT); $(COMPRESS_WIN);)
461
462#========================================================================
463# End of user-definable section
464#========================================================================
465
466#========================================================================
467# Don't modify the file to clean here.  Instead, set the "CLEANFILES"
468# variable in configure.in
469#========================================================================
470
471clean:  
472	-test -z "$(BINARIES)" || rm -f $(BINARIES)
473	-rm -f *.$(OBJEXT) core *.core
474	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
475
476distclean: clean
477	-rm -f *.tab.c
478	-rm -f $(CONFIG_CLEAN_FILES)
479	-rm -f config.cache config.log config.status
480
481#========================================================================
482# Install binary object libraries.  On Windows this includes both .dll and
483# .lib files.  Because the .lib files are not explicitly listed anywhere,
484# we need to deduce their existence from the .dll file of the same name.
485# Library files go into the lib directory.
486# In addition, this will generate the pkgIndex.tcl
487# file in the install location (assuming it can find a usable tclsh shell)
488#
489# You should not have to modify this target.
490#========================================================================
491
492install-lib-binaries:
493	@mkdir -p $(DESTDIR)$(pkglibdir)
494	@list='$(lib_BINARIES)'; for p in $$list; do \
495	  if test -f $$p; then \
496	    echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p"; \
497	    $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p; \
498	    echo " $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p"; \
499	    $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p; \
500	    ext=`echo $$p|sed -e "s/.*\.//"`; \
501	    if test "x$$ext" = "xdll"; then \
502		lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \
503		if test -f $$lib; then \
504		    echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib"; \
505	            $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib; \
506		fi; \
507	    fi; \
508	  fi; \
509	done
510	@list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
511	  if test -f $(srcdir)/$$p; then \
512	    destp=`basename $$p`; \
513	    echo " Install $$destp $(DESTDIR)$(pkglibdir)/$$destp"; \
514	    $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkglibdir)/$$destp; \
515	  fi; \
516	done
517
518#========================================================================
519# Install binary executables (e.g. .exe files and dependent .dll files)
520# This is for files that must go in the bin directory (located next to
521# wish and tclsh), like dependent .dll files on Windows.
522#
523# You should not have to modify this target, except to define bin_BINARIES
524# above if necessary.
525#========================================================================
526
527install-bin-binaries:
528	@mkdir -p $(DESTDIR)$(bindir)
529	@list='$(bin_BINARIES)'; for p in $$list; do \
530	  if test -f $$p; then \
531	    echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p"; \
532	    $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p; \
533	  fi; \
534	done
535
536.SUFFIXES: .c .$(OBJEXT)
537.SUFFIXES: .@RES@
538.SUFFIXES: .rc
539
540Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
541	cd $(top_builddir) \
542	  && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
543
544uninstall-binaries:
545	list='$(lib_BINARIES)'; for p in $$list; do \
546	  rm -f $(DESTDIR)$(pkglibdir)/$$p; \
547	done
548	list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
549	  p=`basename $$p`; \
550	  rm -f $(DESTDIR)$(pkglibdir)/$$p; \
551	done
552	list='$(bin_BINARIES)'; for p in $$list; do \
553	  rm -f $(DESTDIR)$(bindir)/$$p; \
554	done
555
556.PHONY: all binaries clean depend distclean doc install libraries test
557
558# Tell versions [3.59,3.63) of GNU make to not export all variables.
559# Otherwise a system limit (for SysV at least) may be exceeded.
560.NOEXPORT:
561