[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A question about Suffix -> no suffix rule

From: Shigio YAMAGUCHI
Subject: A question about Suffix -> no suffix rule
Date: Wed, 2 Mar 2016 07:20:02 +0900

I cannot understand a behavior of GNU Make.
Would you please teach me about it?

I have done the following procedure in my OSX El Capitan:

$ make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

This program built for i386-apple-darwin11.3.0
$ ls
$ cat Makefile
%: %.m4
        m4 $^ > $@
$ touch test.html.m4
$ make test.html
m4 test.html.m4 > test.html
$ touch test.c.m4
$ make test.c
make: *** No rule to make target `test.c'.  Stop.

Why does the build of test.c fail?
Is there a way to make it succeed?

Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

reply via email to

[Prev in Thread] Current Thread [Next in Thread]