3 ## $Id: Makefile.m4,v 1.2 2002/02/02 19:23:06 mdw Exp $
5 ## Makefile for sounds subdirectory
7 ## (c) 2002 Mark Wooding
10 ##----- Licensing notice ----------------------------------------------------
12 ## This file is part of Jog: Programming for a jogging machine.
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.
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.
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.
28 ##----- Revision history ----------------------------------------------------
30 ## $Log: Makefile.m4,v $
31 ## Revision 1.2 2002/02/02 19:23:06 mdw
32 ## Don't distribute the text samples. Generating them is too easy.
34 ## Revision 1.1 2002/02/02 19:18:01 mdw
35 ## Construct text `samples' automatically.
38 AUTOMAKE_OPTIONS = foreign
42 define([[getsamples]], [[dnl
43 sed '/^[ ]*\($$2\|#\)/d' <$3SAMPLES | dnl
44 while read tag msg; do $1; done]])
48 ## SAMPLES = syscmd(getsamples([[echo -n " \\
51 TXTSAMPLES = syscmd(getsamples([[echo -n " \\
54 audio_DATA = $(SAMPLES) $(TXTSAMPLES)
57 $(SAMPLES) SAMPLES Makefile.m4
59 $(TXTSAMPLES): txtsamples.stamp
61 txtsamples.stamp: SAMPLES
62 getsamples([[echo "$$msg" >$$tag.txt]], [[$]], [[$(srcdir)/]])
63 echo timestamp >txtsamples.stamp
65 Makefile.am: Makefile.m4 SAMPLES
66 cd $(srcdir) && m4 Makefile.m4 >Makefile.am
68 CLEANFILES = $(TXTSAMPLES) txtsamples.stamp
70 ##----- That's all, folks ---------------------------------------------------