mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 04:08:42 +00:00
Make: Silence echo in verbose mode
This commit is contained in:
parent
379f995940
commit
d6f027ef34
10
Makefile.in
10
Makefile.in
@ -41,8 +41,10 @@ ifeq ($(objdir),.)
|
||||
endif
|
||||
|
||||
ifeq ($(VERBOSE),)
|
||||
E:=@
|
||||
Q:=@
|
||||
else
|
||||
E:=@\#
|
||||
Q:=
|
||||
endif
|
||||
|
||||
@ -85,20 +87,20 @@ include $(addsuffix /Makefile,$(addprefix $(srcdir)/,$(dirs)))
|
||||
# Generic rules
|
||||
|
||||
$(objdir)/%.o: $(srcdir)/%.c $(objdir)/.dir-stamp $(objdir)/sysdep/paths.h
|
||||
$(Q)echo CC -o $@ -c $<
|
||||
$(E)echo CC -o $@ -c $<
|
||||
$(Q)$(CC) $(CFLAGS) -MMD -MP -o $@ -c $<
|
||||
|
||||
$(objdir)/%.o: $(objdir)/%.c $(objdir)/.dir-stamp $(objdir)/sysdep/paths.h
|
||||
$(Q)echo CC -o $@ -c $<
|
||||
$(E)echo CC -o $@ -c $<
|
||||
$(Q)$(CC) $(CFLAGS) -MMD -MP -o $@ -c $<
|
||||
|
||||
$(objdir)/.dir-stamp:
|
||||
$(Q)echo MKDIR -p $(addprefix $(objdir)/,$(dirs) doc)
|
||||
$(E)echo MKDIR -p $(addprefix $(objdir)/,$(dirs) doc)
|
||||
$(Q)mkdir -p $(addprefix $(objdir)/,$(dirs) doc)
|
||||
$(Q)touch $@
|
||||
|
||||
$(client) $(daemon):
|
||||
$(Q)echo LD $(LDFLAGS) -o $@ $^ $(LIBS)
|
||||
$(E)echo LD $(LDFLAGS) -o $@ $^ $(LIBS)
|
||||
$(Q)$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
|
||||
|
||||
$(objdir)/sysdep/paths.h: Makefile
|
||||
|
Loading…
Reference in New Issue
Block a user