bug-make
[Top][All Lists]
Advanced

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

[bug #66011] dependencies after a non-existing file are silently ignored


From: Dmitry Goncharov
Subject: [bug #66011] dependencies after a non-existing file are silently ignored
Date: Sun, 21 Jul 2024 09:07:40 -0400 (EDT)

Follow-up Comment #1, bug #66011 (group make):

This rule

%.o : %.c $(HEADERS) Makefile

does not apply because nonexisting.h does not exist.

To make there is simply no rule in this makefile to build *.o files.

You want to do something like this instead

hello.o: $(HEADERS) Makefile
%.o : %.c
        $(CC) $(CFLAGS) -c $<


i'll need to think if diagnostics can be improved to help the user in this
case.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66011>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

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