* upstream/Makefile.am (ltdl.h.diff, ltdl.c.diff): add $(srcdir)
[bpt/guile.git] / libguile-ltdl / upstream / Makefile.am
1 ## Process this file with Automake to create Makefile.in
2 ##
3 ## Copyright (C) 2002 Free Software Foundation, Inc.
4 ##
5 ## This file is part of GUILE.
6 ##
7 ## GUILE is free software; you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as
9 ## published by the Free Software Foundation; either version 2, or
10 ## (at your option) any later version.
11 ##
12 ## GUILE is distributed in the hope that it will be useful, but
13 ## WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ## GNU General Public License for more details.
16 ##
17 ## You should have received a copy of the GNU General Public
18 ## License along with GUILE; see the file COPYING. If not, write
19 ## to the Free Software Foundation, Inc., 59 Temple Place, Suite
20 ## 330, Boston, MA 02111-1307 USA
21
22 AUTOMAKE_OPTIONS = gnu
23
24 ## Prevent automake from adding extra -I options
25 DEFS = @DEFS@
26 ## Check for headers in $(srcdir)/.., so that #include
27 ## <libguile/MUMBLE.h> will find MUMBLE.h in this dir when we're
28 ## building.
29 INCLUDES = -I.. -I$(srcdir)/..
30
31 ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_LONG\).*\"\([^\"]\)*\"/\3/' \
32 --regex='/[ \t]*SCM_[G]?DEFINE1?[ \t]*(\([^,]*\),[^,]*/\1/'
33
34 EXTRA_DIST := ltdl.h ltdl.c ltdl.h.diff ltdl.c.diff
35 BUILT_SOURCES := ltdl.h.diff ltdl.c.diff
36
37 ltdl.h.diff: ltdl.h $(srcdir)/../raw-ltdl.h
38 cp $(srcdir)/../raw-ltdl.h raw-ltdl.guilemod.h.tmp
39 perl -pi \
40 -e 's/SCMLTXT/extern/go;' \
41 -e 's/SCMLTSTATIC //go;' \
42 -e 's/ SCM_UNUSED//go;' \
43 -e 's/SCM_INSERTED_DLSYMLIST_STRUCT_DECL //go;' \
44 raw-ltdl.guilemod.h.tmp
45 mv raw-ltdl.guilemod.h.tmp raw-ltdl.guilemod.h
46 diff -ru $(srcdir)/ltdl.h raw-ltdl.guilemod.h > ltdl.h.diff; \
47 test "$$?" -eq 1
48
49 ltdl.c.diff: ltdl.c $(srcdir)/../raw-ltdl.c
50 cp $(srcdir)/../raw-ltdl.c raw-ltdl.guilemod.c.tmp
51 perl -pi \
52 -e 's/SCMLTXT/extern/go;' \
53 -e 's/SCMLTSTATIC //go;' \
54 -e 's/ SCM_UNUSED//go;' \
55 -e 's/SCM_INSERTED_DLSYMLIST_STRUCT_DECL //go;' \
56 raw-ltdl.guilemod.c.tmp
57 mv raw-ltdl.guilemod.c.tmp raw-ltdl.guilemod.c
58 diff -ru $(srcdir)/ltdl.c raw-ltdl.guilemod.c > ltdl.c.diff; \
59 test "$$?" -eq 1
60
61 CLEANFILES := \
62 raw-ltdl.guilemod.h raw-ltdl.guilemod.c \
63 raw-ltdl.guilemod.h.tmp raw-ltdl.guilemod.c.tmp