File: Makefile.in

package info (click to toggle)
tk707 0.7.21-9
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge
  • size: 1,972 kB
  • ctags: 711
  • sloc: ansic: 10,986; tcl: 3,079; sh: 556; makefile: 182; lex: 147
file content (863 lines) | stat: -rw-r--r-- 27,981 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am

# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

# -----------------------------------------------------------------------------
# documentation
# -----------------------------------------------------------------------------


SHELL = @SHELL@

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@

bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include

DESTDIR =

pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@

top_builddir = .

ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
transform = @program_transform_name@

NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = @host_alias@
host_triplet = @host@
ALSA_CFLAGS = @ALSA_CFLAGS@
ALSA_LIBS = @ALSA_LIBS@
CC = @CC@
FIG2DEV = @FIG2DEV@
HAVE_LIB = @HAVE_LIB@
LAME = @LAME@
LEX = @LEX@
LIB = @LIB@
LTLIB = @LTLIB@
MAKEINFO = @MAKEINFO@
MIDIDUMP = @MIDIDUMP@
PACKAGE = @PACKAGE@
TCLTK_CFLAGS = @TCLTK_CFLAGS@
TCLTK_LDFLAGS = @TCLTK_LDFLAGS@
TCLTK_LIBS = @TCLTK_LIBS@
TEXI2DVI = @TEXI2DVI@
TEXI2HTML = @TEXI2HTML@
TIMIDITY = @TIMIDITY@
VERSION = @VERSION@

info_TEXINFOS = tk707.texi
htmldir = ${datadir}/html
html_DATA = tk707.html
man_MANS = tk707.1

# -----------------------------------------------------------------------------
# the file set
# -----------------------------------------------------------------------------

noinst_PROGRAMS = tcl2c tk707bin tk707tcl texi2help
tk707bin_SOURCES = util707.c util707.h element707.c play.c 		    tk707AppInit.c title_defs.c score_defs.c defsa.c ports.c 		    title.c score.c gui.c procs.c help.c tk707.c nix_bit.h

tk707tcl_SOURCES = util707.c util707.h element707.c playa.c 		    tk707AppInit.c nix_bit.h

tcl2c_SOURCES = tcl2c.c 
texi2help_SOURCES = texi2help.l 

tk707bin_LDFLAGS = $(ALSA_LIBS)   $(TCLTK_LIBS)   $(X_LIBS)
tk707tcl_LDFLAGS = $(ALSA_LIBS)   $(TCLTK_LIBS)   $(X_LIBS)
INCLUDES = $(ALSA_CFLAGS) $(TCLTK_CFLAGS) $(X_CFLAGS)

pkgdata_DATA = 707.map 727.map 7b7.map 7c7.map 		    demo.dat son-montuno.dat carioca.dat 		    tk707.help


TESTS = check.sh
TESTS_ENVIRONMENT = MIDIDUMP=$(MIDIDUMP); export MIDIDUMP; /bin/sh

BUILT_SOURCES =  	 title.tcl title_defs.tcl 	title.c   title_defs.c  	score.tcl score_defs.tcl 	score.c   score_defs.c   	defs.c  ports.c gui.c procs.c help.c tk707.c 	defsa.c playa.c


EXTRA_DIST = VERSION INSTALL texi2help.c 	tk707.sh.in defs.tcl ports.tcl gui.tcl procs.tcl help.tcl 	tk707.tcl 	score.fig score_fig2tcl.sh 	title.fig title_fig2tcl.sh 	test_02.dat test_05.dat test_06.dat tst_scale.dat 	son-montuno.dat 	$(man_MANS) 	$(BUILT_SOURCES) 	tk707.html 	go $(pkgdata_DATA) $(TESTS) 	binaire-tk.valid-dump triolet-tk.valid-dump tst_scale.valid-dump 	INSTALL.texi gpl.texi BUGS stamp-h.in


CLEANFILES = tk707.sh *.o .deps/* *.mid *.bak *.dvi *.ps *.log

CVSIGNORE =  	Makefile.in configure aclocal.m4 config.h.in stamp-h.in			stamp-vti score_defs.tcl score_defs.c score.tcl score.c			title_defs.tcl title_defs.c title.tcl title.c defsa.c			defs.c ports.c procs.c help.c gui.c tk707.c playa.c INSTALL 		version.texi texi2help.c tk707.help tk707.html


WCIGNORE =  	COPYING VERSION binaire-tk.valid-dump gpl.texi install-sh		mdate-sh missing mkinstalldirs tcl2c.c son-montuno.dat			demo.dat test_02.dat test_05.dat test_06.dat texinfo.tex 		score.fig title.fig triolet-tk.valid-dump tst_scale.dat 		tst_scale.valid-dump


# -----------------------------------------------------------------------------
# other rules
# -----------------------------------------------------------------------------

SUFFIXES = .mid .wav .mp3
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES =  tk707.sh
PROGRAMS =  $(noinst_PROGRAMS)


DEFS = @DEFS@ -I. -I$(srcdir) -I.
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
X_CFLAGS = @X_CFLAGS@
X_LIBS = @X_LIBS@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
X_PRE_LIBS = @X_PRE_LIBS@
tcl2c_OBJECTS =  tcl2c.o
tcl2c_LDADD = $(LDADD)
tcl2c_DEPENDENCIES = 
tcl2c_LDFLAGS = 
tk707bin_OBJECTS =  util707.o element707.o play.o tk707AppInit.o \
title_defs.o score_defs.o defsa.o ports.o title.o score.o gui.o procs.o \
help.o tk707.o
tk707bin_LDADD = $(LDADD)
tk707bin_DEPENDENCIES = 
tk707tcl_OBJECTS =  util707.o element707.o playa.o tk707AppInit.o
tk707tcl_LDADD = $(LDADD)
tk707tcl_DEPENDENCIES = 
texi2help_OBJECTS =  texi2help.o
texi2help_LDADD = $(LDADD)
texi2help_DEPENDENCIES = 
texi2help_LDFLAGS = 
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
LEXLIB = @LEXLIB@
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
INFO_DEPS = tk707.info
DVIS = tk707.dvi
TEXINFOS = tk707.texi
man1dir = $(mandir)/man1
MANS = $(man_MANS)

NROFF = nroff
DATA =  $(html_DATA) $(pkgdata_DATA)

DIST_COMMON =  README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
Makefile.am Makefile.in NEWS TODO acinclude.m4 aclocal.m4 config.h.in \
configure configure.in install-sh mdate-sh missing mkinstalldirs \
stamp-vti texi2help.c texinfo.tex tk707.sh.in version.texi


DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)

TAR = tar
GZIP_ENV = --best
DEP_FILES =  .deps/defs.P .deps/defsa.P .deps/element707.P .deps/gui.P \
.deps/help.P .deps/play.P .deps/playa.P .deps/ports.P .deps/procs.P \
.deps/score.P .deps/score_defs.P .deps/tcl2c.P .deps/texi2help.P \
.deps/title.P .deps/title_defs.P .deps/tk707.P .deps/tk707AppInit.P \
.deps/util707.P
SOURCES = $(tcl2c_SOURCES) $(tk707bin_SOURCES) $(tk707tcl_SOURCES) $(texi2help_SOURCES)
OBJECTS = $(tcl2c_OBJECTS) $(tk707bin_OBJECTS) $(tk707tcl_OBJECTS) $(texi2help_OBJECTS)

all: all-redirect
.SUFFIXES:
.SUFFIXES: .S .c .dvi .info .l .mid .mp3 .o .ps .s .texi .texinfo .txi .wav
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
	cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile

Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
	cd $(top_builddir) \
	  && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

$(ACLOCAL_M4):  configure.in  acinclude.m4
	cd $(srcdir) && $(ACLOCAL)

config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
	$(SHELL) ./config.status --recheck
$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
	cd $(srcdir) && $(AUTOCONF)

config.h: stamp-h
	@if test ! -f $@; then \
		rm -f stamp-h; \
		$(MAKE) stamp-h; \
	else :; fi
stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
	cd $(top_builddir) \
	  && CONFIG_FILES= CONFIG_HEADERS=config.h \
	     $(SHELL) ./config.status
	@echo timestamp > stamp-h 2> /dev/null
$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
	@if test ! -f $@; then \
		rm -f $(srcdir)/stamp-h.in; \
		$(MAKE) $(srcdir)/stamp-h.in; \
	else :; fi
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) 
	cd $(top_srcdir) && $(AUTOHEADER)
	@echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null

mostlyclean-hdr:

clean-hdr:

distclean-hdr:
	-rm -f config.h

maintainer-clean-hdr:
tk707.sh: $(top_builddir)/config.status tk707.sh.in
	cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

mostlyclean-noinstPROGRAMS:

clean-noinstPROGRAMS:
	-test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)

distclean-noinstPROGRAMS:

maintainer-clean-noinstPROGRAMS:

.s.o:
	$(COMPILE) -c $<

.S.o:
	$(COMPILE) -c $<

mostlyclean-compile:
	-rm -f *.o core *.core

clean-compile:

distclean-compile:
	-rm -f *.tab.c

maintainer-clean-compile:

tcl2c: $(tcl2c_OBJECTS) $(tcl2c_DEPENDENCIES)
	@rm -f tcl2c
	$(LINK) $(tcl2c_LDFLAGS) $(tcl2c_OBJECTS) $(tcl2c_LDADD) $(LIBS)

tk707bin: $(tk707bin_OBJECTS) $(tk707bin_DEPENDENCIES)
	@rm -f tk707bin
	$(LINK) $(tk707bin_LDFLAGS) $(tk707bin_OBJECTS) $(tk707bin_LDADD) $(LIBS)

tk707tcl: $(tk707tcl_OBJECTS) $(tk707tcl_DEPENDENCIES)
	@rm -f tk707tcl
	$(LINK) $(tk707tcl_LDFLAGS) $(tk707tcl_OBJECTS) $(tk707tcl_LDADD) $(LIBS)

texi2help: $(texi2help_OBJECTS) $(texi2help_DEPENDENCIES)
	@rm -f texi2help
	$(LINK) $(texi2help_LDFLAGS) $(texi2help_OBJECTS) $(texi2help_LDADD) $(LIBS)
.l.c:
	$(LEX) $(AM_LFLAGS) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@

$(srcdir)/version.texi: stamp-vti
	@:

$(srcdir)/stamp-vti: tk707.texi $(top_srcdir)/configure.in
	@echo "@set UPDATED `$(SHELL) $(srcdir)/mdate-sh $(srcdir)/tk707.texi`" > vti.tmp
	@echo "@set EDITION $(VERSION)" >> vti.tmp
	@echo "@set VERSION $(VERSION)" >> vti.tmp
	@cmp -s vti.tmp $(srcdir)/version.texi \
	  || (echo "Updating $(srcdir)/version.texi"; \
	      cp vti.tmp $(srcdir)/version.texi)
	-@rm -f vti.tmp
	@cp $(srcdir)/version.texi $@

mostlyclean-vti:
	-rm -f vti.tmp

clean-vti:

distclean-vti:

maintainer-clean-vti:
	-rm -f $(srcdir)/stamp-vti $(srcdir)/version.texi

tk707.info: tk707.texi version.texi
tk707.dvi: tk707.texi version.texi


DVIPS = dvips

.texi.info:
	@cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
	cd $(srcdir) \
	  && $(MAKEINFO) `echo $< | sed 's,.*/,,'`

.texi.dvi:
	TEXINPUTS=.:$$TEXINPUTS \
	  MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<

.texi:
	@cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
	cd $(srcdir) \
	  && $(MAKEINFO) `echo $< | sed 's,.*/,,'`

.texinfo.info:
	@cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
	cd $(srcdir) \
	  && $(MAKEINFO) `echo $< | sed 's,.*/,,'`

.texinfo:
	@cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
	cd $(srcdir) \
	  && $(MAKEINFO) `echo $< | sed 's,.*/,,'`

.texinfo.dvi:
	TEXINPUTS=.:$$TEXINPUTS \
	  MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<

.txi.info:
	@cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
	cd $(srcdir) \
	  && $(MAKEINFO) `echo $< | sed 's,.*/,,'`

.txi.dvi:
	TEXINPUTS=.:$$TEXINPUTS \
	  MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<

.txi:
	@cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
	cd $(srcdir) \
	  && $(MAKEINFO) `echo $< | sed 's,.*/,,'`
.dvi.ps:
	$(DVIPS) $< -o $@

install-info-am: $(INFO_DEPS)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(infodir)
	@list='$(INFO_DEPS)'; \
	for file in $$list; do \
	  d=$(srcdir); \
	  for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
	    if test -f $$d/$$ifile; then \
	      echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
	      $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
	    else : ; fi; \
	  done; \
	done
	@$(POST_INSTALL)
	@if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
	  list='$(INFO_DEPS)'; \
	  for file in $$list; do \
	    echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\
	    install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\
	  done; \
	else : ; fi

uninstall-info:
	$(PRE_UNINSTALL)
	@if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
	  ii=yes; \
	else ii=; fi; \
	list='$(INFO_DEPS)'; \
	for file in $$list; do \
	  test -z "$$ii" \
	    || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
	done
	@$(NORMAL_UNINSTALL)
	list='$(INFO_DEPS)'; \
	for file in $$list; do \
	  (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
	done

dist-info: $(INFO_DEPS)
	list='$(INFO_DEPS)'; \
	for base in $$list; do \
	  d=$(srcdir); \
	  for file in `cd $$d && eval echo $$base*`; do \
	    test -f $(distdir)/$$file \
	    || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
	    || cp -p $$d/$$file $(distdir)/$$file; \
	  done; \
	done

mostlyclean-aminfo:
	-rm -f tk707.aux tk707.cp tk707.cps tk707.dvi tk707.fn tk707.fns \
	  tk707.ky tk707.kys tk707.ps tk707.log tk707.pg tk707.toc \
	  tk707.tp tk707.tps tk707.vr tk707.vrs tk707.op tk707.tr \
	  tk707.cv tk707.cn

clean-aminfo:

distclean-aminfo:

maintainer-clean-aminfo:
	cd $(srcdir) && for i in $(INFO_DEPS); do \
	  rm -f $$i; \
	  if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \
	    rm -f $$i-[0-9]*; \
	  fi; \
	done

install-man1:
	$(mkinstalldirs) $(DESTDIR)$(man1dir)
	@list='$(man1_MANS)'; \
	l2='$(man_MANS)'; for i in $$l2; do \
	  case "$$i" in \
	    *.1*) list="$$list $$i" ;; \
	  esac; \
	done; \
	for i in $$list; do \
	  if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
	  else file=$$i; fi; \
	  ext=`echo $$i | sed -e 's/^.*\\.//'`; \
	  inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
	  inst=`echo $$inst | sed '$(transform)'`.$$ext; \
	  echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
	  $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
	done

uninstall-man1:
	@list='$(man1_MANS)'; \
	l2='$(man_MANS)'; for i in $$l2; do \
	  case "$$i" in \
	    *.1*) list="$$list $$i" ;; \
	  esac; \
	done; \
	for i in $$list; do \
	  ext=`echo $$i | sed -e 's/^.*\\.//'`; \
	  inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
	  inst=`echo $$inst | sed '$(transform)'`.$$ext; \
	  echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
	  rm -f $(DESTDIR)$(man1dir)/$$inst; \
	done
install-man: $(MANS)
	@$(NORMAL_INSTALL)
	$(MAKE) $(AM_MAKEFLAGS) install-man1
uninstall-man:
	@$(NORMAL_UNINSTALL)
	$(MAKE) $(AM_MAKEFLAGS) uninstall-man1

install-htmlDATA: $(html_DATA)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(htmldir)
	@list='$(html_DATA)'; for p in $$list; do \
	  if test -f $(srcdir)/$$p; then \
	    echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(htmldir)/$$p"; \
	    $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(htmldir)/$$p; \
	  else if test -f $$p; then \
	    echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$p"; \
	    $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/$$p; \
	  fi; fi; \
	done

uninstall-htmlDATA:
	@$(NORMAL_UNINSTALL)
	list='$(html_DATA)'; for p in $$list; do \
	  rm -f $(DESTDIR)$(htmldir)/$$p; \
	done

install-pkgdataDATA: $(pkgdata_DATA)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
	@list='$(pkgdata_DATA)'; for p in $$list; do \
	  if test -f $(srcdir)/$$p; then \
	    echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgdatadir)/$$p"; \
	    $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgdatadir)/$$p; \
	  else if test -f $$p; then \
	    echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/$$p"; \
	    $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/$$p; \
	  fi; fi; \
	done

uninstall-pkgdataDATA:
	@$(NORMAL_UNINSTALL)
	list='$(pkgdata_DATA)'; for p in $$list; do \
	  rm -f $(DESTDIR)$(pkgdatadir)/$$p; \
	done

tags: TAGS

ID: $(HEADERS) $(SOURCES) $(LISP)
	list='$(SOURCES) $(HEADERS)'; \
	unique=`for i in $$list; do echo $$i; done | \
	  awk '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	here=`pwd` && cd $(srcdir) \
	  && mkid -f$$here/ID $$unique $(LISP)

TAGS:  $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
	tags=; \
	here=`pwd`; \
	list='$(SOURCES) $(HEADERS)'; \
	unique=`for i in $$list; do echo $$i; done | \
	  awk '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
	  || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP))

mostlyclean-tags:

clean-tags:

distclean-tags:
	-rm -f TAGS ID

maintainer-clean-tags:

distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)

# This target untars the dist file and tries a VPATH configuration.  Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
	-rm -rf $(distdir)
	GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
	mkdir $(distdir)/=build
	mkdir $(distdir)/=inst
	dc_install_base=`cd $(distdir)/=inst && pwd`; \
	cd $(distdir)/=build \
	  && ../configure --srcdir=.. --prefix=$$dc_install_base \
	  && $(MAKE) $(AM_MAKEFLAGS) \
	  && $(MAKE) $(AM_MAKEFLAGS) dvi \
	  && $(MAKE) $(AM_MAKEFLAGS) check \
	  && $(MAKE) $(AM_MAKEFLAGS) install \
	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \
	  && $(MAKE) $(AM_MAKEFLAGS) dist
	-rm -rf $(distdir)
	@banner="$(distdir).tar.gz is ready for distribution"; \
	dashes=`echo "$$banner" | sed s/./=/g`; \
	echo "$$dashes"; \
	echo "$$banner"; \
	echo "$$dashes"
dist: distdir
	-chmod -R a+r $(distdir)
	GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
	-rm -rf $(distdir)
dist-all: distdir
	-chmod -R a+r $(distdir)
	GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
	-rm -rf $(distdir)
distdir: $(DISTFILES)
	-rm -rf $(distdir)
	mkdir $(distdir)
	-chmod 777 $(distdir)
	here=`cd $(top_builddir) && pwd`; \
	top_distdir=`cd $(distdir) && pwd`; \
	distdir=`cd $(distdir) && pwd`; \
	cd $(top_srcdir) \
	  && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
	@for file in $(DISTFILES); do \
	  d=$(srcdir); \
	  if test -d $$d/$$file; then \
	    cp -pr $$d/$$file $(distdir)/$$file; \
	  else \
	    test -f $(distdir)/$$file \
	    || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
	    || cp -p $$d/$$file $(distdir)/$$file || :; \
	  fi; \
	done
	$(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info

DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)

-include $(DEP_FILES)

mostlyclean-depend:

clean-depend:

distclean-depend:
	-rm -rf .deps

maintainer-clean-depend:

%.o: %.c
	@echo '$(COMPILE) -c $<'; \
	$(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
	@-cp .deps/$(*F).pp .deps/$(*F).P; \
	tr ' ' '\012' < .deps/$(*F).pp \
	  | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
	    >> .deps/$(*F).P; \
	rm .deps/$(*F).pp

%.lo: %.c
	@echo '$(LTCOMPILE) -c $<'; \
	$(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
	@-sed -e 's/^\([^:]*\)\.o[ 	]*:/\1.lo \1.o :/' \
	  < .deps/$(*F).pp > .deps/$(*F).P; \
	tr ' ' '\012' < .deps/$(*F).pp \
	  | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
	    >> .deps/$(*F).P; \
	rm -f .deps/$(*F).pp
check-TESTS: $(TESTS)
	@failed=0; all=0; \
	srcdir=$(srcdir); export srcdir; \
	for tst in $(TESTS); do \
	  if test -f $$tst; then dir=.; \
	  else dir="$(srcdir)"; fi; \
	  if $(TESTS_ENVIRONMENT) $$dir/$$tst; then \
	    all=`expr $$all + 1`; \
	    echo "PASS: $$tst"; \
	  elif test $$? -ne 77; then \
	    all=`expr $$all + 1`; \
	    failed=`expr $$failed + 1`; \
	    echo "FAIL: $$tst"; \
	  fi; \
	done; \
	if test "$$failed" -eq 0; then \
	  banner="All $$all tests passed"; \
	else \
	  banner="$$failed of $$all tests failed"; \
	fi; \
	dashes=`echo "$$banner" | sed s/./=/g`; \
	echo "$$dashes"; \
	echo "$$banner"; \
	echo "$$dashes"; \
	test "$$failed" -eq 0
info-am: $(INFO_DEPS)
info: info-am
dvi-am: $(DVIS)
dvi: dvi-am
check-am: all-am
	$(MAKE) $(AM_MAKEFLAGS) check-TESTS
check: check-am
installcheck-am:
installcheck: installcheck-am
all-recursive-am: config.h
	$(MAKE) $(AM_MAKEFLAGS) all-recursive

install-exec-am: install-exec-local
install-exec: install-exec-am

install-data-am: install-info-am install-man install-htmlDATA \
		install-pkgdataDATA
install-data: install-data-am

install-am: all-am
	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-am
uninstall-am: uninstall-info uninstall-man uninstall-htmlDATA \
		uninstall-pkgdataDATA uninstall-local
uninstall: uninstall-am
all-am: Makefile $(INFO_DEPS) $(PROGRAMS) $(MANS) $(DATA) config.h \
		all-local
all-redirect: all-am
install-strip:
	$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
installdirs:
	$(mkinstalldirs)  $(DESTDIR)$(infodir) $(DESTDIR)$(mandir)/man1 \
		$(DESTDIR)$(htmldir) $(DESTDIR)$(pkgdatadir)


mostlyclean-generic:

clean-generic:
	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)

distclean-generic:
	-rm -f Makefile $(CONFIG_CLEAN_FILES)
	-rm -f config.cache config.log stamp-h stamp-h[0-9]*

maintainer-clean-generic:
	-test -z "texi2helpc$(BUILT_SOURCES)" || rm -f texi2helpc $(BUILT_SOURCES)
mostlyclean-am:  mostlyclean-hdr mostlyclean-noinstPROGRAMS \
		mostlyclean-compile mostlyclean-vti mostlyclean-aminfo \
		mostlyclean-tags mostlyclean-depend mostlyclean-generic

mostlyclean: mostlyclean-am

clean-am:  clean-hdr clean-noinstPROGRAMS clean-compile clean-vti \
		clean-aminfo clean-tags clean-depend clean-generic \
		mostlyclean-am

clean: clean-am

distclean-am:  distclean-hdr distclean-noinstPROGRAMS distclean-compile \
		distclean-vti distclean-aminfo distclean-tags \
		distclean-depend distclean-generic clean-am

distclean: distclean-am
	-rm -f config.status

maintainer-clean-am:  maintainer-clean-hdr \
		maintainer-clean-noinstPROGRAMS \
		maintainer-clean-compile maintainer-clean-vti \
		maintainer-clean-aminfo maintainer-clean-tags \
		maintainer-clean-depend maintainer-clean-generic \
		distclean-am maintainer-clean-local
	@echo "This command is intended for maintainers to use;"
	@echo "it deletes files that may require special tools to rebuild."

maintainer-clean: maintainer-clean-am
	-rm -f config.status

.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \
clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \
mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile mostlyclean-vti distclean-vti clean-vti \
maintainer-clean-vti install-info-am uninstall-info mostlyclean-aminfo \
distclean-aminfo clean-aminfo maintainer-clean-aminfo install-man1 \
uninstall-man1 install-man uninstall-man uninstall-htmlDATA \
install-htmlDATA uninstall-pkgdataDATA install-pkgdataDATA tags \
mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \
distdir mostlyclean-depend distclean-depend clean-depend \
maintainer-clean-depend check-TESTS info-am info dvi-am dvi check \
check-am installcheck-am installcheck all-recursive-am \
install-exec-local install-exec-am install-exec install-data-am \
install-data install-am install uninstall-local uninstall-am uninstall \
all-local all-redirect all-am all installdirs mostlyclean-generic \
distclean-generic clean-generic maintainer-clean-generic clean \
mostlyclean distclean maintainer-clean


# -----------------------------------------------------------------------------
# specific rules to generate figure *.tcl from *.fig (requieres fig2dev)
# -----------------------------------------------------------------------------

title.tcl title_defs.tcl: title.fig title_fig2tcl.sh
	sh $(srcdir)/title_fig2tcl.sh $(srcdir)/title.fig

score.tcl score_defs.tcl: score.fig score_fig2tcl.sh
	sh $(srcdir)/score_fig2tcl.sh $(srcdir)/score.fig

# -----------------------------------------------------------------------------
# specific rules for documentation: html and INSTALL
# -----------------------------------------------------------------------------

tk707.info tk707.dvi tk707.html: tk707.texi INSTALL.texi

$(srcdir)/tk707.html: tk707.texi
	@if test x"${TEXI2HTML}" != x"" && test x"`echo ${TEXI2HTML} | grep missing`" = x""; then \
	     echo "$(TEXI2HTML) -monolithic ${srcdir}/tk707.texi"; 		\
	     $(TEXI2HTML) -monolithic ${srcdir}/tk707.texi; 			\
	    if test "${srcdir}" != "."; then 					\
		 echo "mv tk707.html ${srcdir}/tk707.html"; 			\
		 mv tk707.html ${srcdir}/tk707.html; 				\
	    fi;									\
	else 									\
	     true; 								\
	fi

all-local: INSTALL.txt

$(srcdir)/INSTALL.txt: INSTALL.texi
	if test x"${MAKEINFO}" != x"" && test x"`echo ${MAKEINFO} | grep missing`" = x""; then  \
		tmp_texi=INSTALL-tmp$$$$.texi ; 	\
		grep -v "@[a-z][a-z]index" $(srcdir)/INSTALL.texi | \
		    sed -e 's/^@node Installation,,, Top/@node Installation,,, (dir)/' \
		    > $$tmp_texi; \
		makeinfo -I . --no-header $$tmp_texi > INSTALL.txt; \
		/bin/rm -f $$tmp_texi;			\
		cp INSTALL.txt $(srcdir)/INSTALL; 	\
	else						\
		touch INSTALL.txt;			\
	fi

# -----------------------------------------------------------------------------
# specific rules for documentation: .help
# -----------------------------------------------------------------------------

$(srcdir)/tk707.help: tk707.texi texi2help
	texi2help < $(srcdir)/tk707.texi > $(srcdir)/tk707.help

# -----------------------------------------------------------------------------
# specific install rule: local tk707bin becomes installed tk707bin
# -----------------------------------------------------------------------------

$(srcdir)/tk707.c: tk707.tcl tcl2c
	./tcl2c tcl_tk707 < $(srcdir)/tk707.tcl > $(srcdir)/tk707.c
$(srcdir)/ports.c: ports.tcl tcl2c
	./tcl2c tcl_ports < $(srcdir)/ports.tcl > $(srcdir)/ports.c
$(srcdir)/defs.c: defs.tcl tcl2c
	sed -e 's%set VERSION[^\\]*\\%set VERSION $(VERSION)\\%' < $(srcdir)/defs.tcl | ./tcl2c tcl_defs > $(srcdir)/defs.c
$(srcdir)/playa.c: play.c
	sed '1,8s%^$$%#define not_compile_tcl%' $(srcdir)/play.c > $(srcdir)/playa.c
$(srcdir)/defsa.c: defs.c
	sed 's%set PKGDATADIR[^\\]*\\%set PKGDATADIR $(pkgdatadir)\\%' $(srcdir)/defs.c > $(srcdir)/defsa.c
$(srcdir)/title.c: title.tcl tcl2c
	./tcl2c tcl_title < $(srcdir)/title.tcl > $(srcdir)/title.c
$(srcdir)/title_defs.c: title_defs.tcl tcl2c
	./tcl2c tcl_title_defs < $(srcdir)/title_defs.tcl > $(srcdir)/title_defs.c
$(srcdir)/score.c: score.tcl tcl2c
	./tcl2c tcl_score < $(srcdir)/score.tcl > $(srcdir)/score.c
$(srcdir)/score_defs.c: score_defs.tcl tcl2c
	./tcl2c tcl_score_defs < $(srcdir)/score_defs.tcl > $(srcdir)/score_defs.c
$(srcdir)/gui.c: gui.tcl tcl2c
	./tcl2c tcl_gui < $(srcdir)/gui.tcl > $(srcdir)/gui.c
$(srcdir)/procs.c: procs.tcl tcl2c
	./tcl2c tcl_procs < $(srcdir)/procs.tcl > $(srcdir)/procs.c
$(srcdir)/help.c: help.tcl tcl2c
	./tcl2c tcl_help < $(srcdir)/help.tcl > $(srcdir)/help.c

# -----------------------------------------------------------------------------
# specific rules for lex
# -----------------------------------------------------------------------------

$(srcdir)/texi2help.c: texi2help.l
	if test x"${LEX}" != x"" && test x"`echo ${LEX} | grep missing`" = x""; then \
	     echo "$(LEX) $(AM_LFLAGS) $(LFLAGS) ${srcdir}/texi2help.l && mv $(LEX_OUTPUT_ROOT).c $(srcdir)/texi2help.c"; \
	     $(LEX) $(AM_LFLAGS) $(LFLAGS) ${srcdir}/texi2help.l && mv $(LEX_OUTPUT_ROOT).c $(srcdir)/texi2help.c; \
	else \
	     test -f $(srcdir)/texi2help.c; \
	fi

# -----------------------------------------------------------------------------
# add to standard automake
# -----------------------------------------------------------------------------

install-exec-local: tk707bin tk707.sh
	$(mkinstalldirs) $(DESTDIR)$(bindir)
	$(INSTALL_SCRIPT) tk707.sh $(DESTDIR)$(bindir)/tk707
	$(mkinstalldirs) $(DESTDIR)$(libdir)/tk707
	sh $(srcdir)/install-sh -s -c tk707bin $(DESTDIR)$(libdir)/tk707/tk707bin

uninstall-local:
	/bin/rm -f $(DESTDIR)$(bindir)/tk707
	/bin/rm -f $(DESTDIR)$(libdir)/tk707bin

maintainer-clean-local:
	cd $(srcdir); /bin/rm -f ${BUILT_SOURCES} tk707.html tk707.help		\
		aclocal.m4 config.h config.log config.status		\
		configure INSTALL.txt Makefile Makefile.in stamp-h	\
		stamp-h.in stamp-vti texi2help.c tk707.help		\
		tk707.info version.texi

.mid.wav:
	timidity $*.mid -Ow $*.wav
.wav.mp3:
	lame -b128 $*.wav $*.mp3

# optional cvs/automake environment
-include ${CVSMKROOT}/cvs.mk

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT: