Expunge revision histories.
[jog] / sounds / Makefile.m4
CommitLineData
416bc2cb 1## -*-makefile-*-
2##
8284b00b 3## $Id: Makefile.m4,v 1.2 2002/02/02 19:23:06 mdw Exp $
416bc2cb 4##
5## Makefile for sounds subdirectory
6##
7## (c) 2002 Mark Wooding
8##
9
10##----- Licensing notice ----------------------------------------------------
11##
12## This file is part of Jog: Programming for a jogging machine.
13##
14## Jog is free software; you can redistribute it and/or modify
15## it under the terms of the GNU General Public License as published by
16## the Free Software Foundation; either version 2 of the License, or
17## (at your option) any later version.
18##
19## Jog is distributed in the hope that it will be useful,
20## but WITHOUT ANY WARRANTY; without even the implied warranty of
21## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22## GNU General Public License for more details.
23##
24## You should have received a copy of the GNU General Public License
25## along with Jog; if not, write to the Free Software Foundation,
26## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27
416bc2cb 28AUTOMAKE_OPTIONS = foreign
29
30changecom
31changequote([[, ]])
32define([[getsamples]], [[dnl
33sed '/^[ ]*\($$2\|#\)/d' <$3SAMPLES | dnl
34 while read tag msg; do $1; done]])
35
36audiodir = @audiodir@
37
38## SAMPLES = syscmd(getsamples([[echo -n " \\
39 $tag.wav"]]))
40SAMPLES =
41TXTSAMPLES = syscmd(getsamples([[echo -n " \\
42 $tag.txt"]]))
43
44audio_DATA = $(SAMPLES) $(TXTSAMPLES)
45
46EXTRA_DIST = \
8284b00b 47 $(SAMPLES) SAMPLES Makefile.m4
416bc2cb 48
49$(TXTSAMPLES): txtsamples.stamp
50
51txtsamples.stamp: SAMPLES
52 getsamples([[echo "$$msg" >$$tag.txt]], [[$]], [[$(srcdir)/]])
53 echo timestamp >txtsamples.stamp
54
55Makefile.am: Makefile.m4 SAMPLES
56 cd $(srcdir) && m4 Makefile.m4 >Makefile.am
57
58CLEANFILES = $(TXTSAMPLES) txtsamples.stamp
59
60##----- That's all, folks ---------------------------------------------------