Skip to content

Commit

Permalink
Makefiles: 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 auth.c => .objs/auth.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 ce7707a commit c33da88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion man/man3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ endif
man: $(objects)

%.3.gz: %.3
@echo -e " GZ\t$@"
@echo " GZ $@"
$(v)gzip -c $< > $@

.PHONY: clean
Expand Down
6 changes: 3 additions & 3 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ endif
all: $(LIBNAME)

$(LIBNAME): $(objects)
@echo -e " LNK\t$@.so"
@echo " LNK $@.so"
$(v)$(CC) $(LDFLAGS),-soname,$(LIBNAME).so.$(SOVER) -o $(LIBNAME).so.$(VERSION) $(objects) $(LIBS)
$(v)ln -sf $(LIBNAME).so.$(VERSION) $(LIBNAME).so.$(SOVER)
$(v)ln -sf $(LIBNAME).so.$(VERSION) $(LIBNAME).so
Expand All @@ -64,7 +64,7 @@ vpath %.c platform/$(UNAME_S):platform/common

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

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

Expand Down

0 comments on commit c33da88

Please sign in to comment.