summaryrefslogtreecommitdiff
path: root/default.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1993-06-25 18:59:05 +0000
committerRoland McGrath <roland@redhat.com>1993-06-25 18:59:05 +0000
commit4ac6d662446594a2879b6468444f20e045f13ed1 (patch)
tree728f3b78d554b7ab408fa29a45207c75f2b17a83 /default.c
parent08c71a7dbf3236667faf762f9a8e322cc0c0902c (diff)
downloadgunmake-4ac6d662446594a2879b6468444f20e045f13ed1.tar.gz
Formerly default.c.~27~
Diffstat (limited to 'default.c')
-rw-r--r--default.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/default.c b/default.c
index dab4dc9..d8641fc 100644
--- a/default.c
+++ b/default.c
@@ -31,7 +31,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
static char default_suffixes[]
= ".out .a .ln .o .c .cc .C .p .f .F .r .y .l .s .S \
.mod .sym .def .h .info .dvi .tex .texinfo .texi .txinfo \
-.w .web .sh .elc .el";
+.w .ch .web .sh .elc .el";
static struct pspec default_pattern_rules[] =
{
@@ -44,6 +44,12 @@ static struct pspec default_pattern_rules[] =
{ "%.out", "%",
"@rm -f $@ \n cp $< $@" },
+ /* Syntax is "ctangle foo.w foo.ch foo.c". */
+ { "%.c", "%.w %.ch",
+ "$(CTANGLE) $^ $@" },
+ { "%.tex", "%.w %.ch",
+ "$(CWEAVE) $^ $@" },
+
{ 0, 0, 0 }
};
@@ -172,13 +178,13 @@ static char *default_suffix_rules[] =
"$(TEXI2DVI) $<",
".w.c",
- "$(CTANGLE) $<",
+ "$(CTANGLE) $< - $@", /* The `-' says there is no `.ch' file. */
".web.p",
"$(TANGLE) $<",
".w.tex",
- "$(CWEAVE) $<",
+ "$(CWEAVE) $< - $@", /* The `-' says there is no `.ch' file. */
".web.tex",
"$(WEAVE) $<",