Commit | Line | Data |
---|---|---|
733943b9 | 1 | ## Process this file with Automake to create Makefile.in |
2764bd99 | 2 | ## |
c565712c | 3 | ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
2764bd99 JB |
4 | ## |
5 | ## This file is part of GUILE. | |
54f16aec | 6 | ## |
2764bd99 JB |
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. | |
54f16aec | 11 | ## |
2764bd99 JB |
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. | |
54f16aec | 16 | ## |
2764bd99 JB |
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 | |
733943b9 | 21 | |
3307df95 | 22 | AUTOMAKE_OPTIONS = gnu |
733943b9 | 23 | |
a0599745 | 24 | ## Prevent automake from adding extra -I options |
8f99e3f3 | 25 | DEFS = @DEFS@ |
733943b9 TT |
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. | |
45cf70fa | 29 | INCLUDES = -I.. -I$(top_srcdir) -I$(top_srcdir)/libguile-ltdl |
733943b9 | 30 | |
4079f87e | 31 | ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_LONG\).*\"\([^\"]\)*\"/\3/' \ |
abc049a9 | 32 | --regex='/[ \t]*SCM_[G]?DEFINE1?[ \t]*(\([^,]*\),[^,]*/\1/' |
fef07353 | 33 | |
e13d8dc0 | 34 | lib_LTLIBRARIES = libguile.la |
f94b6524 | 35 | bin_PROGRAMS = guile |
b32fca0f | 36 | |
f94b6524 | 37 | noinst_PROGRAMS = guile_filter_doc_snarfage |
b32fca0f MV |
38 | guile_filter_doc_snarfage_SOURCES = c-tokenize.c |
39 | ||
40 | ## Override default rule; this should be compiled for BUILD host. | |
41 | ## For some reason, OBJEXT does not include the dot | |
42 | c-tokenize.$(OBJEXT): c-tokenize.c | |
43 | if [ "$(cross_compiling)" = "yes" ]; then \ | |
a12611c3 | 44 | $(CC_FOR_BUILD) -c -o $@ c-tokenize.c; \ |
b32fca0f | 45 | else \ |
a12611c3 | 46 | $(COMPILE) -c -o $@ c-tokenize.c; \ |
b32fca0f MV |
47 | fi |
48 | ||
49 | ## Override default rule; this should run on BUILD host. | |
50 | guile_filter_doc_snarfage$(EXEEXT): $(guile_filter_doc_snarfage_OBJECTS) $(guile_filter_doc_snarfage_DEPENDENCIES) | |
51 | @rm -f guile_filter_doc_snarfage$(EXEEXT) | |
52 | if [ "$(cross_compiling)" = "yes" ]; then \ | |
53 | $(CCLD_FOR_BUILD) -o $@ $(guile_filter_doc_snarfage_OBJECTS); \ | |
54 | else \ | |
55 | $(LINK) $(guile_filter_doc_snarfage_OBJECTS) $(LDADD) $(LIBS); \ | |
56 | fi | |
57 | ||
549436de JB |
58 | |
59 | guile_SOURCES = guile.c | |
8f99e3f3 | 60 | guile_LDADD = libguile.la |
6165ede3 | 61 | guile_LDFLAGS = @DLPREOPEN@ |
ee2a8b9b | 62 | |
438b2738 | 63 | libguile_la_SOURCES = alist.c arbiters.c async.c backtrace.c boolean.c \ |
5dacb21f MV |
64 | chars.c continuations.c convert.c debug.c deprecation.c \ |
65 | dynwind.c environments.c eq.c error.c eval.c evalext.c extensions.c \ | |
438b2738 | 66 | feature.c fluids.c fports.c \ |
5dacb21f | 67 | gc.c gc-mark.c gc-segment.c gc-malloc.c gc-card.c gc-freelist.c \ |
c8a1bdc4 | 68 | gc_os_dep.c gdbint.c gh_data.c gh_eval.c gh_funcs.c gh_init.c \ |
438b2738 | 69 | gh_io.c gh_list.c gh_predicates.c goops.c gsubr.c guardians.c hash.c \ |
340c49bf | 70 | hashtab.c hooks.c init.c inline.c ioext.c keywords.c \ |
9b7ee9d8 | 71 | lang.c list.c \ |
438b2738 MV |
72 | load.c macros.c mallocs.c modules.c numbers.c objects.c objprop.c \ |
73 | options.c pairs.c ports.c print.c procprop.c procs.c properties.c \ | |
74 | random.c rdelim.c read.c root.c rw.c scmsigs.c script.c simpos.c smob.c \ | |
75 | sort.c srcprop.c stackchk.c stacks.c stime.c strings.c strop.c \ | |
5dacb21f | 76 | strorder.c strports.c struct.c symbols.c threads.c throw.c values.c \ |
dee01b01 | 77 | variable.c vectors.c version.c vports.c weaks.c |
03416a99 | 78 | |
7e516288 MV |
79 | DOT_X_FILES = alist.x arbiters.x async.x backtrace.x boolean.x chars.x \ |
80 | continuations.x debug.x deprecation.x dynl.x dynwind.x \ | |
81 | environments.x eq.x \ | |
438b2738 | 82 | error.x eval.x evalext.x extensions.x feature.x fluids.x fports.x \ |
5dacb21f | 83 | gc.x gc-mark.x gc-segment.x gc-malloc.x gc-card.x goops.x \ |
7e516288 MV |
84 | gsubr.x guardians.x hash.x hashtab.x hooks.x init.x ioext.x iselect.x \ |
85 | keywords.x lang.x list.x load.x macros.x mallocs.x modules.x \ | |
86 | numbers.x objects.x objprop.x options.x pairs.x ports.x print.x \ | |
87 | procprop.x procs.x properties.x random.x rdelim.x read.x root.x rw.x \ | |
88 | scmsigs.x script.x simpos.x smob.x sort.x srcprop.x \ | |
89 | stackchk.x stacks.x stime.x strings.x strop.x strorder.x strports.x \ | |
5dacb21f | 90 | struct.x symbols.x threads.x throw.x values.x variable.x vectors.x \ |
dee01b01 | 91 | version.x vports.x weaks.x |
8bee78b3 | 92 | |
e9e225e5 | 93 | EXTRA_DOT_X_FILES = @EXTRA_DOT_X_FILES@ |
8bee78b3 | 94 | |
86d31dfe MV |
95 | DOT_DOC_FILES = alist.doc arbiters.doc async.doc backtrace.doc \ |
96 | boolean.doc chars.doc continuations.doc debug.doc dynl.doc \ | |
97 | dynwind.doc environments.doc eq.doc error.doc eval.doc evalext.doc \ | |
438b2738 | 98 | extensions.doc feature.doc fluids.doc fports.doc gc.doc goops.doc \ |
5dacb21f | 99 | gsubr.doc gc-mark.doc gc-segment.doc gc-malloc.doc gc-card.doc \ |
86d31dfe MV |
100 | guardians.doc hash.doc hashtab.doc hooks.doc init.doc ioext.doc \ |
101 | iselect.doc keywords.doc lang.doc list.doc load.doc macros.doc \ | |
102 | mallocs.doc modules.doc numbers.doc objects.doc objprop.doc \ | |
103 | options.doc pairs.doc ports.doc print.doc procprop.doc \ | |
b0e5fd8c | 104 | procs.doc properties.doc random.doc rdelim.doc read.doc root.doc rw.doc \ |
86d31dfe MV |
105 | scmsigs.doc script.doc simpos.doc smob.doc sort.doc \ |
106 | srcprop.doc stackchk.doc stacks.doc stime.doc strings.doc strop.doc \ | |
5dacb21f | 107 | strorder.doc strports.doc struct.doc symbols.doc threads.doc throw.doc \ |
dee01b01 | 108 | values.doc variable.doc vectors.doc version.doc vports.doc weaks.doc |
a3365d47 | 109 | |
2ce88b54 | 110 | EXTRA_DOT_DOC_FILES = @EXTRA_DOT_DOC_FILES@ |
9515eae6 | 111 | |
5b03c15c | 112 | BUILT_SOURCES = cpp_err_symbols.c cpp_sig_symbols.c libpath.h scmconfig.h \ |
d8a20ddb | 113 | version.h \ |
cecb4a5e | 114 | $(DOT_X_FILES) $(EXTRA_DOT_X_FILES) guile.texi |
9515eae6 | 115 | |
438b2738 | 116 | EXTRA_libguile_la_SOURCES = _scm.h \ |
60a059e6 | 117 | alloca.c inet_aton.c memmove.c putenv.c strerror.c \ |
5dacb21f | 118 | dynl.c regex-posix.c \ |
438b2738 | 119 | filesys.c posix.c net_db.c socket.c \ |
5dacb21f | 120 | ramap.c unif.c debug-malloc.c mkstemp.c \ |
b4e15479 | 121 | win32-uname.c win32-dirent.c win32-socket.c |
7bfd3b9e | 122 | |
413a1367 ML |
123 | ## delete guile-snarf.awk from the installation bindir, in case it's |
124 | ## lingering there due to an earlier guile version not having been | |
125 | ## wiped out. | |
126 | install-exec-hook: | |
b27b814d | 127 | rm -f $(DESTDIR)$(bindir)/guile-snarf.awk |
413a1367 | 128 | |
7bfd3b9e | 129 | ## This is kind of nasty... there are ".c" files that we don't want to |
1be6b49c ML |
130 | ## compile, since they are #included. So instead we list them here. |
131 | ## Perhaps we can deal with them normally once the merge seems to be | |
132 | ## working. | |
340c49bf MV |
133 | noinst_HEADERS = num2integral.i.c num2float.i.c convert.i.c \ |
134 | win32-uname.h win32-dirent.h win32-socket.h \ | |
135 | private-gc.h | |
7bfd3b9e | 136 | |
78bda5f3 | 137 | libguile_la_DEPENDENCIES = @LIBLOBJS@ |
45cf70fa | 138 | libguile_la_LIBADD = @LIBLOBJS@ ../libguile-ltdl/libguile-ltdl.la $(THREAD_LIBS_LOCAL) |
94b1762d | 139 | libguile_la_LDFLAGS = -version-info @LIBGUILE_INTERFACE_CURRENT@:@LIBGUILE_INTERFACE_REVISION@:@LIBGUILE_INTERFACE_AGE@ -export-dynamic -no-undefined |
733943b9 | 140 | |
54f16aec | 141 | # These are headers visible as <guile/mumble.h> |
ee2a8b9b JB |
142 | pkginclude_HEADERS = gh.h |
143 | ||
733943b9 | 144 | # These are headers visible as <libguile/mumble.h>. |
5380de6b | 145 | modincludedir = $(includedir)/libguile |
03416a99 | 146 | modinclude_HEADERS = __scm.h alist.h arbiters.h async.h backtrace.h boolean.h \ |
340c49bf | 147 | chars.h continuations.h convert.h debug.h \ |
29717c89 | 148 | debug-malloc.h threads-plugin.h null-threads.h pthread-threads.h \ |
f9b52b7a | 149 | deprecation.h dynl.h dynwind.h environments.h eq.h error.h eval.h \ |
1fa86ca5 | 150 | evalext.h extensions.h feature.h filesys.h fluids.h fports.h gc.h \ |
438b2738 | 151 | gdb_interface.h gdbint.h \ |
9b7ee9d8 MV |
152 | goops.h gsubr.h guardians.h hash.h hashtab.h hooks.h init.h \ |
153 | inline.h ioext.h \ | |
03416a99 KN |
154 | iselect.h keywords.h lang.h list.h load.h macros.h mallocs.h modules.h \ |
155 | net_db.h numbers.h objects.h objprop.h options.h pairs.h ports.h posix.h \ | |
156 | regex-posix.h print.h procprop.h procs.h properties.h random.h ramap.h \ | |
b0e5fd8c | 157 | rdelim.h read.h root.h rw.h scmsigs.h validate.h script.h simpos.h smob.h \ |
03416a99 | 158 | snarf.h socket.h sort.h srcprop.h stackchk.h stacks.h stime.h strings.h \ |
6b41a313 | 159 | strop.h strorder.h strports.h struct.h symbols.h tags.h threads.h \ |
03416a99 | 160 | throw.h unif.h values.h variable.h vectors.h version.h vports.h weaks.h |
4725c298 | 161 | |
adb75a41 TT |
162 | ## This file is generated at configure time. That is why it is DATA |
163 | ## and not a header -- headers are included in the distribution. | |
733943b9 TT |
164 | modinclude_DATA = scmconfig.h |
165 | ||
604a672e TTN |
166 | bin_SCRIPTS = guile-snarf |
167 | ||
f94b6524 TTN |
168 | # We can re-enable install for some of these if/when they are documented |
169 | # and people feel like maintaining them. For now, this is not the case. | |
604a672e | 170 | noinst_SCRIPTS = guile-doc-snarf guile-snarf-docs guile-func-name-check |
adb75a41 | 171 | |
41973b48 MV |
172 | EXTRA_DIST = ChangeLog-gh ChangeLog-scm ChangeLog-threads \ |
173 | ChangeLog-1996-1999 ChangeLog-2000 cpp_signal.c \ | |
a3451a59 MV |
174 | cpp_errno.c cpp_err_symbols.in cpp_err_symbols.c \ |
175 | cpp_sig_symbols.c cpp_sig_symbols.in cpp_cnvt.awk \ | |
29717c89 | 176 | c-tokenize.lex threads-plugin.c |
c99f9605 ML |
177 | # $(DOT_DOC_FILES) $(EXTRA_DOT_DOC_FILES) \ |
178 | # guile-procedures.txt guile.texi | |
733943b9 | 179 | |
d8a20ddb RB |
180 | ## We use @-...-@ as the substitution brackets here, instead of the |
181 | ## usual @...@, so autoconf doesn't go and substitute the values | |
182 | ## directly into the left-hand sides of the sed substitutions. *sigh* | |
183 | version.h: version.h.in | |
9bc4701c | 184 | sed < $< > $@.tmp \ |
d8a20ddb RB |
185 | -e s:@-GUILE_MAJOR_VERSION-@:${GUILE_MAJOR_VERSION}: \ |
186 | -e s:@-GUILE_MINOR_VERSION-@:${GUILE_MINOR_VERSION}: \ | |
187 | -e s:@-GUILE_MICRO_VERSION-@:${GUILE_MICRO_VERSION}: | |
188 | mv $@.tmp $@ | |
189 | ||
fef07353 | 190 | ## FIXME: Consider using timestamp file, to avoid unnecessary rebuilds. |
90ff3ec5 | 191 | libpath.h: $(srcdir)/Makefile.in $(top_builddir)/config.status |
54f16aec | 192 | @echo "Generating libpath.h..." |
e151bee6 JB |
193 | @rm -f libpath.tmp |
194 | @echo '/* generated by Makefile */' > libpath.tmp | |
195 | @echo '#define SCM_PKGDATA_DIR "$(pkgdatadir)"' >> libpath.tmp | |
d8a20ddb | 196 | @echo '#define SCM_LIBRARY_DIR "$(pkgdatadir)/$(GUILE_EFFECTIVE_VERSION)"'>>libpath.tmp |
e151bee6 JB |
197 | @echo '#define SCM_SITE_DIR "$(pkgdatadir)/site"' >> libpath.tmp |
198 | @echo '#define SCM_BUILD_INFO { \' >> libpath.tmp | |
199 | @echo ' { "srcdir", "'"`cd @srcdir@; pwd`"'" }, \' >> libpath.tmp | |
c565712c | 200 | @echo ' { "top_srcdir", "@top_srcdir_absolute@" }, \' >> libpath.tmp |
e151bee6 JB |
201 | @echo ' { "prefix", "@prefix@" }, \' >> libpath.tmp |
202 | @echo ' { "exec_prefix", "@exec_prefix@" }, \' >> libpath.tmp | |
203 | @echo ' { "bindir", "@bindir@" }, \' >> libpath.tmp | |
204 | @echo ' { "sbindir", "@sbindir@" }, \' >> libpath.tmp | |
205 | @echo ' { "libexecdir", "@libexecdir@" }, \' >> libpath.tmp | |
206 | @echo ' { "datadir", "@datadir@" }, \' >> libpath.tmp | |
207 | @echo ' { "sysconfdir", "@sysconfdir@" }, \' >> libpath.tmp | |
208 | @echo ' { "sharedstatedir", "@sharedstatedir@" }, \' >> libpath.tmp | |
209 | @echo ' { "localstatedir", "@localstatedir@" }, \' >> libpath.tmp | |
210 | @echo ' { "libdir", "@libdir@" }, \' >> libpath.tmp | |
211 | @echo ' { "infodir", "@infodir@" }, \' >> libpath.tmp | |
212 | @echo ' { "mandir", "@mandir@" }, \' >> libpath.tmp | |
213 | @echo ' { "includedir", "@includedir@" }, \' >> libpath.tmp | |
214 | @echo ' { "pkgdatadir", "$(datadir)/@PACKAGE@" }, \' >> libpath.tmp | |
215 | @echo ' { "pkglibdir", "$(libdir)/@PACKAGE@" }, \' >> libpath.tmp | |
216 | @echo ' { "pkgincludedir", "$(includedir)/@PACKAGE@" }, \' \ | |
217 | >> libpath.tmp | |
b6fae158 | 218 | @echo ' { "guileversion", "@GUILE_VERSION@" }, \' >> libpath.tmp |
54f16aec TTN |
219 | @echo ' { "libguileinterface", "@LIBGUILE_INTERFACE@" }, \' \ |
220 | >> libpath.tmp | |
30dda257 | 221 | @echo ' { "LIBS", "@GUILE_LIBS@" }, \' >> libpath.tmp |
54f16aec | 222 | @echo ' { "buildstamp", "'"`date`"'" }, \' >> libpath.tmp |
e151bee6 JB |
223 | @echo '}' >> libpath.tmp |
224 | @mv libpath.tmp libpath.h | |
733943b9 | 225 | |
3dc81fba | 226 | |
e9c3d3f9 TTN |
227 | snarfcppopts = $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) |
228 | ||
3dc81fba | 229 | SUFFIXES = .x .doc |
733943b9 | 230 | .c.x: |
2c7a286a | 231 | ./guile-snarf -o $@ $< $(snarfcppopts) |
c99f9605 ML |
232 | .c.doc: |
233 | -(test -n "${AWK+set}" || AWK="@AWK@"; ${AWK} -f ./guile-func-name-check $<) | |
e9c3d3f9 | 234 | (./guile-snarf-docs $(snarfcppopts) $< | \ |
af68e5e5 | 235 | ./guile_filter_doc_snarfage$(EXEEXT) --filter-snarfage) > $@ || { rm $@; false; } |
733943b9 | 236 | |
c99f9605 ML |
237 | $(DOT_X_FILES) $(EXTRA_DOT_DOC_FILES): snarf.h guile-snarf.in |
238 | ||
94b1762d | 239 | $(DOT_DOC_FILES) $(EXTRA_DOT_DOC_FILES): snarf.h guile-snarf-docs.in guile_filter_doc_snarfage$(EXEEXT) |
66418d34 | 240 | |
faf6a29b MV |
241 | error.x: cpp_err_symbols.c |
242 | posix.x: cpp_sig_symbols.c | |
243 | load.x: libpath.h | |
244 | ||
58ed8bc6 | 245 | include $(top_srcdir)/am/pre-inst-guile |
cecb4a5e | 246 | |
f8241358 | 247 | alldotdocfiles = $(DOT_DOC_FILES) $(EXTRA_DOT_DOC_FILES) |
b32fca0f | 248 | snarf2checkedtexi = GUILE="$(GUILE_FOR_BUILD)" $(top_srcdir)/scripts/snarf-check-and-output-texi |
f8241358 TTN |
249 | dotdoc2texi = cat $(alldotdocfiles) | $(snarf2checkedtexi) |
250 | ||
251 | guile.texi: $(alldotdocfiles) guile | |
252 | $(dotdoc2texi) --manual > $@ || { rm $@; false; } | |
253 | ||
254 | guile-procedures.texi: $(alldotdocfiles) guile | |
255 | $(dotdoc2texi) > $@ || { rm $@; false; } | |
9d29e990 | 256 | |
9df3eecc MV |
257 | if HAVE_MAKEINFO |
258 | ||
cecb4a5e | 259 | guile-procedures.txt: guile-procedures.texi |
9d29e990 | 260 | rm -f $@ |
f7742034 | 261 | makeinfo --force -o $@ guile-procedures.texi || test -f $@ |
4079f87e | 262 | |
9df3eecc MV |
263 | else |
264 | ||
265 | guile-procedures.txt: guile-procedures.texi | |
f7742034 | 266 | cp guile-procedures.texi $@ |
9df3eecc MV |
267 | |
268 | endif | |
269 | ||
30e3be5a | 270 | c-tokenize.c: c-tokenize.lex |
47ac1e47 | 271 | flex -t $(srcdir)/c-tokenize.lex > $@ || { rm $@; false; } |
30e3be5a | 272 | |
d8a20ddb | 273 | schemelibdir = $(pkgdatadir)/$(GUILE_EFFECTIVE_VERSION) |
8dc9439f | 274 | schemelib_DATA = guile-procedures.txt |
4079f87e | 275 | |
733943b9 TT |
276 | ## Add -MG to make the .x magic work with auto-dep code. |
277 | MKDEP = gcc -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) | |
ee78fbb0 | 278 | |
a9c093e2 | 279 | cpp_err_symbols.c: cpp_err_symbols.in cpp_cnvt.awk |
a0e90145 | 280 | $(AWK) -f $(srcdir)/cpp_cnvt.awk < $(srcdir)/cpp_err_symbols.in > \ |
593d151f JB |
281 | cpp_err_symbols.tmp |
282 | mv cpp_err_symbols.tmp cpp_err_symbols.c | |
ee78fbb0 | 283 | |
a9c093e2 | 284 | cpp_sig_symbols.c: cpp_sig_symbols.in cpp_cnvt.awk |
a0e90145 | 285 | $(AWK) -f $(srcdir)/cpp_cnvt.awk < $(srcdir)/cpp_sig_symbols.in > \ |
593d151f JB |
286 | cpp_sig_symbols.tmp |
287 | mv cpp_sig_symbols.tmp cpp_sig_symbols.c | |
67ec3667 | 288 | |
a0e90145 | 289 | ## Create a new version of the cpp_sig_symbols.in file, including all SIGXXX |
67ec3667 GH |
290 | ## macros defined on this platform. |
291 | check_signals: | |
292 | gcc -undef -dM -E $(srcdir)/cpp_signal.c | egrep ' SIG[A-Z]+' \ | |
293 | | cut -f2 -d' ' | sort > cpp_sig_symbols_here | |
a0e90145 JB |
294 | diff -u $(srcdir)/cpp_sig_symbols.in cpp_sig_symbols_here \ |
295 | | egrep '^\+S' \ | |
67ec3667 GH |
296 | | cut -c2- > cpp_sig_symbols_diff |
297 | if test -s cpp_sig_symbols_diff ; then \ | |
a0e90145 | 298 | cat $(srcdir)/cpp_sig_symbols.in cpp_sig_symbols_diff \ |
67ec3667 GH |
299 | | sort > cpp_sig_symbols_new ;\ |
300 | echo "cpp_sig_symbols_new has the following additions:" ;\ | |
301 | cat cpp_sig_symbols_diff ;\ | |
302 | else echo "No new symbols found."; \ | |
303 | fi | |
304 | ||
a0e90145 | 305 | ## Likewise for cpp_err_symbols.in. |
67ec3667 GH |
306 | check_errnos: |
307 | gcc -undef -dM -E $(srcdir)/cpp_errno.c | egrep ' E.+' \ | |
308 | | cut -f2 -d' ' | sort > cpp_err_symbols_here | |
a0e90145 JB |
309 | diff -u $(srcdir)/cpp_err_symbols.in cpp_err_symbols_here \ |
310 | | egrep '^\+E' \ | |
67ec3667 GH |
311 | | cut -c2- > cpp_err_symbols_diff |
312 | if test -s cpp_err_symbols_diff ; then \ | |
a0e90145 | 313 | cat $(srcdir)/cpp_err_symbols.in cpp_err_symbols_diff \ |
67ec3667 GH |
314 | | sort > cpp_err_symbols_new ;\ |
315 | echo "cpp_err_symbols_new has the following additions:" ;\ | |
316 | cat cpp_err_symbols_diff ;\ | |
317 | else echo "No new symbols found."; \ | |
318 | fi | |
319 | ||
ad6b30a0 TP |
320 | MOSTLYCLEANFILES = \ |
321 | cpp_err_symbols_here cpp_err_symbols_diff cpp_err_symbols_new \ | |
d8a20ddb RB |
322 | cpp_sig_symbols_here cpp_sig_symbols_diff cpp_sig_symbols_new \ |
323 | version.h version.h.tmp \ | |
324 | scmconfig.h scmconfig.h.tmp | |
ad6b30a0 | 325 | |
cecb4a5e | 326 | CLEANFILES = libpath.h *.x *.doc guile-procedures.txt guile-procedures.texi guile.texi |
ee0c0e03 ML |
327 | |
328 | MAINTAINERCLEANFILES = c-tokenize.c |