aboutsummaryrefslogtreecommitdiff
path: root/gint.mk
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-04-10 20:55:28 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2010-04-10 20:55:28 +0300
commitc0b45050c948df4457a32182daf3767d05a1f2f4 (patch)
tree03d6109a16709cc4bd075b4e38a06a394d665800 /gint.mk
downloadgint-c0b45050c948df4457a32182daf3767d05a1f2f4.tar.gz
gint-c0b45050c948df4457a32182daf3767d05a1f2f4.tar.bz2
Initial commit.
Diffstat (limited to 'gint.mk')
-rw-r--r--gint.mk66
1 files changed, 66 insertions, 0 deletions
diff --git a/gint.mk b/gint.mk
new file mode 100644
index 0000000..b691b3d
--- /dev/null
+++ b/gint.mk
@@ -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
17INCLUDES += @GUILE_INCLUDES@
18
19EXTRA_DIST += guile-procedures.texi guile-procedures.txt
20
21site_DATA += guile-procedures.txt
22
23BUILT_SOURCES=$(DOT_X_FILES) $(DOT_DOC_FILES) guile-procedures.texi
24
25DISTCLEANFILES +=\
26 $(DOT_X_FILES)\
27 $(DOT_DOC_FILES)\
28 guile-procedures.texi\
29 guile-procedures.txt
30
31ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_LONG\).*\"\([^\"]\)*\"/\3/' \
32 --regex='/[ \t]*SCM_[G]?DEFINE1?[ \t]*(\([^,]*\),[^,]*/\1/'
33
34GUILE_DOC_SNARF=$(top_builddir)/$(GINT_MODULE_DIR)/clexer --snarfer
35
36SUFFIXES += .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
48if GINT_COND_INC
49SUFFIXES += .inc
50CLEANFILES += *.inc
51
52.doc.inc:
53 $(AM_V_GEN)$(top_srcdir)/$(GINT_MODULE_DIR)/extract-exports -o $@ $<
54endif
55
56guile-procedures.texi: $(DOT_DOC_FILES)
57 $(AM_V_GEN)cat $(DOT_DOC_FILES) | \
58 $(GUILE_TOOLS) snarf-check-and-output-texi > $@
59
60guile-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.
65MKDEP = $(CC) -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
66

Return to:

Send suggestions and report system problems to the System administrator.