News for hackers. Stuff that matters.
Re:A Simple Makefile for Medium-Sized C/C++ Projects by qznc on Friday August 26, 2016 @09:40AM (#12366117)
A variant we use is:

    Q ?= @

    %.o : %.c
        @echo 'CC $@'
        $(Q)$(CC) -o $@ -c $(CFLAGS) $<
Now you can make the commands visible again via `make Q=`.

A more subjective question is, if you echo $@ or $<.

There are no comments on this comment yet.