diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-04-10 20:55:28 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-04-10 20:55:28 +0300 |
commit | c0b45050c948df4457a32182daf3767d05a1f2f4 (patch) | |
tree | 03d6109a16709cc4bd075b4e38a06a394d665800 /gint.mk | |
download | gint-c0b45050c948df4457a32182daf3767d05a1f2f4.tar.gz gint-c0b45050c948df4457a32182daf3767d05a1f2f4.tar.bz2 |
Initial commit.
Diffstat (limited to 'gint.mk')
-rw-r--r-- | gint.mk | 66 |
1 files changed, 66 insertions, 0 deletions
@@ -0,0 +1,66 @@ | |||
1 | # This file is part of Gint | ||
2 | # Copyright (C) 2010 Sergey Poznyakoff | ||
3 | # | ||
4 | # This program is free software; you can redistribute it and/or modify | ||
5 | # it under the terms of the GNU General Public License as published by | ||
6 | # the Free Software Foundation; either version 3, or (at your option) | ||
7 | # any later version. | ||
8 | # | ||
9 | # This program is distributed in the hope that it will be useful, | ||
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | # GNU General Public License for more details. | ||
13 | # | ||
14 | # You should have received a copy of the GNU General Public License | ||
15 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | |||
17 | INCLUDES += @GUILE_INCLUDES@ | ||
18 | |||
19 | EXTRA_DIST += guile-procedures.texi guile-procedures.txt | ||
20 | |||
21 | site_DATA += guile-procedures.txt | ||
22 | |||
23 | BUILT_SOURCES=$(DOT_X_FILES) $(DOT_DOC_FILES) guile-procedures.texi | ||
24 | |||
25 | DISTCLEANFILES +=\ | ||
26 | $(DOT_X_FILES)\ | ||
27 | $(DOT_DOC_FILES)\ | ||
28 | guile-procedures.texi\ | ||
29 | guile-procedures.txt | ||
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 | GUILE_DOC_SNARF=$(top_builddir)/$(GINT_MODULE_DIR)/clexer --snarfer | ||
35 | |||
36 | SUFFIXES += .x .doc | ||
37 | |||
38 | .c.x: | ||
39 | $(AM_V_GEN)AWK=$(AWK) \ | ||
40 | $(GUILE_SNARF) -o $@ \ | ||
41 | $< $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) | ||
42 | |||
43 | .c.doc: | ||
44 | $(AM_V_GEN)$(CC) -DSCM_MAGIC_SNARF_DOCS \ | ||
45 | $(DEFS) $(INCLUDES) $(CPPFLAGS) -E $< | \ | ||
46 | $(GUILE_DOC_SNARF) -o $@ || { rm $@; false; } | ||
47 | |||
48 | if GINT_COND_INC | ||
49 | SUFFIXES += .inc | ||
50 | CLEANFILES += *.inc | ||
51 | |||
52 | .doc.inc: | ||
53 | $(AM_V_GEN)$(top_srcdir)/$(GINT_MODULE_DIR)/extract-exports -o $@ $< | ||
54 | endif | ||
55 | |||
56 | guile-procedures.texi: $(DOT_DOC_FILES) | ||
57 | $(AM_V_GEN)cat $(DOT_DOC_FILES) | \ | ||
58 | $(GUILE_TOOLS) snarf-check-and-output-texi > $@ | ||
59 | |||
60 | guile-procedures.txt: guile-procedures.texi | ||
61 | $(AM_V_GEN) rm -f $@; \ | ||
62 | $(MAKEINFO) --force -o $@ guile-procedures.texi || test -f $@ | ||
63 | |||
64 | ## Add -MG to make the .x magic work with auto-dep code. | ||
65 | MKDEP = $(CC) -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) | ||
66 | |||