summaryrefslogtreecommitdiffabout
path: root/gint.mk
authorSergey Poznyakoff <gray@gnu.org.ua>2010-04-10 17:55:28 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2010-04-10 17:55:28 (GMT)
commitc0b45050c948df4457a32182daf3767d05a1f2f4 (patch) (side-by-side diff)
tree03d6109a16709cc4bd075b4e38a06a394d665800 /gint.mk
downloadgint-c0b45050c948df4457a32182daf3767d05a1f2f4.tar.gz
gint-c0b45050c948df4457a32182daf3767d05a1f2f4.tar.bz2
Initial commit.
Diffstat (limited to 'gint.mk') (more/less context) (ignore whitespace changes)
-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
--- a/dev/null
+++ b/gint.mk
@@ -0,0 +1,66 @@
+# This file is part of Gint
+# Copyright (C) 2010 Sergey Poznyakoff
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+INCLUDES += @GUILE_INCLUDES@
+
+EXTRA_DIST += guile-procedures.texi guile-procedures.txt
+
+site_DATA += guile-procedures.txt
+
+BUILT_SOURCES=$(DOT_X_FILES) $(DOT_DOC_FILES) guile-procedures.texi
+
+DISTCLEANFILES +=\
+ $(DOT_X_FILES)\
+ $(DOT_DOC_FILES)\
+ guile-procedures.texi\
+ guile-procedures.txt
+
+ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_LONG\).*\"\([^\"]\)*\"/\3/' \
+ --regex='/[ \t]*SCM_[G]?DEFINE1?[ \t]*(\([^,]*\),[^,]*/\1/'
+
+GUILE_DOC_SNARF=$(top_builddir)/$(GINT_MODULE_DIR)/clexer --snarfer
+
+SUFFIXES += .x .doc
+
+.c.x:
+ $(AM_V_GEN)AWK=$(AWK) \
+ $(GUILE_SNARF) -o $@ \
+ $< $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
+
+.c.doc:
+ $(AM_V_GEN)$(CC) -DSCM_MAGIC_SNARF_DOCS \
+ $(DEFS) $(INCLUDES) $(CPPFLAGS) -E $< | \
+ $(GUILE_DOC_SNARF) -o $@ || { rm $@; false; }
+
+if GINT_COND_INC
+SUFFIXES += .inc
+CLEANFILES += *.inc
+
+.doc.inc:
+ $(AM_V_GEN)$(top_srcdir)/$(GINT_MODULE_DIR)/extract-exports -o $@ $<
+endif
+
+guile-procedures.texi: $(DOT_DOC_FILES)
+ $(AM_V_GEN)cat $(DOT_DOC_FILES) | \
+ $(GUILE_TOOLS) snarf-check-and-output-texi > $@
+
+guile-procedures.txt: guile-procedures.texi
+ $(AM_V_GEN) rm -f $@; \
+ $(MAKEINFO) --force -o $@ guile-procedures.texi || test -f $@
+
+## Add -MG to make the .x magic work with auto-dep code.
+MKDEP = $(CC) -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
+

Return to:

Send suggestions and report system problems to the System administrator.