[Top][All Lists]

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

Make rule not taken although it matches

From: Sebastian Schuberth
Subject: Make rule not taken although it matches
Date: Mon, 15 Aug 2005 11:11:24 +0200
User-agent: Mozilla Thunderbird 1.0+ (Windows/20050712)


in my makefile I have two simple rules:

prefix_%.s: prefix_%.c
        # Do something

prefix_%.o: prefix_%.s
        # Do something

The file prefix_test.c exists. When I type "make prefix_test.o", instead of my rule some default rule (which is not present in the file) launching "cc" is run. However, running "make prefix_test.s" works, and running "make prefix_test.o" afterwards (so prefix_test.s exists) works then, too. Why is that? Why can't I create both "prefix_test.s" and "prefix_test.o" in a single step by launching "make prefix_test.o"?

Thanks for any insights.

Sebastian Schuberth

reply via email to

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