Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/doc/local.mk')
-rw-r--r--newlib/doc/local.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/newlib/doc/local.mk b/newlib/doc/local.mk
index 64083c3dd..5c867c998 100644
--- a/newlib/doc/local.mk
+++ b/newlib/doc/local.mk
@@ -18,3 +18,14 @@ man-cache:
${srcdir}/doc/makedocbook.py --cache
PHONY += man-cache
+
+#
+# Subdir documentation rules.
+#
+
+SUFFIXES += .def
+
+CHEW = $(MKDOC) -f $(srcdir)/%D%/doc.str
+
+.c.def:
+ $(AM_V_GEN)$(CHEW) < $< > $*.def || ( rm $*.def && false )