[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Strange GNU make behavior with -include ?
From: |
Grégoire Sutre |
Subject: |
Strange GNU make behavior with -include ? |
Date: |
Thu, 28 Nov 2002 12:18:02 +0100 |
Hi,
I was having errors with my Makefiles (for Objective Caml), and I could
pinpoint the problem with the attached very simple Makefile.
Basically (please see the attached Makefile), I use a:
-include fake.depend
statement to include a dependencies makefile 'fake.depend', but this included
makefile does not exists and cannot be made. Indeed, fake.depend can be made
from fake.c, but fake.c does not exist, and it isn't the target of any rule
-- explicit or implicit).
So I expected make to simply ignore fake.depend (as explained in GNU make's
manual).
However, it seems that make still wants to make fake.c, as fake.c is the
prerequisite of another explicit rule (dummy-fake), even though this rule
shouldn't be used at all in the make process.
I believe that this is a bug, but if it isn't, then I guess the manual should
be more precise on this subject.
Thanks a lot,
Gregoire Sutre.
--
Grégoire Sutre Bureau 211
address@hidden LaBRI - CNRS UMR 5800
http://www.labri.fr/~sutre Domaine Universitaire
Tel: +33 5 56 84 33 36 351, cours de la Libération
Fax: +33 5 56 84 66 69 33405 Talence Cedex, FRANCE
Makefile
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Strange GNU make behavior with -include ?,
Grégoire Sutre <=