3 ms·
A variant we use is: Q ?= @ %.o : %.c @echo 'CC $@' $(Q)$(CC) -o $@ -c $(CFLAGS) $< Now you can make the commands visible again via `
by qznc 10y ago
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 $<.