Skip to content

Commit

Permalink
isrc/Makefile: Don't use -e with echo
Browse files Browse the repository at this point in the history
-e with echo is for the interpretation of backslash escapes and was used
with \t here.

However on some systems this isn't interpreted properly. e.g Debian
which produces output like

  -e   CC mtd-cli-bd.o

Remove the -e and \t and just line things up manually.

Signed-off-by: Andrew Clayton <[email protected]>
  • Loading branch information
ac000 committed Aug 6, 2023
1 parent 6f564bf commit ec83be9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ endif
all: $(APPNAME)

$(APPNAME): $(objects)
@echo -e " LNK\t$@"
@echo " LNK $@"
$(v)$(CC) $(LDFLAGS) $(ASAN) -o $@ $(objects) $(LIBS)

%.o: %.c
%.o: %.c $(DEPDIR)/%.o.d
@echo -e " CC\t$@"
@echo " CC $@"
$(v)$(CC) $(DEPFLAGS) $(CFLAGS) -c -o $@ $<
$(POSTCOMPILE)

Expand All @@ -60,7 +60,7 @@ hdrobjs := $(headers:.h=.gch)
hdrchk: $(hdrobjs)
%.gch: %.h
%.gch: %.h $(DEPDIR)/%.gch.d
@echo -e " CC\t$<"
@echo " CC $<"
$(v)$(CC) $(DEPFLAGS) $(CFLAGS) -c -o $@ $<
$(POSTCOMPILE)

Expand Down

0 comments on commit ec83be9

Please sign in to comment.