1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Show the relative path in the quiet build lines

... so it is easier to figure out where in the tree it's at:

	...
	      [LD]   /src/cookies/lib.o
	[MAKE all]   /src/dialogs
	      [CC]   /src/dialogs/document.c
	...
	    [LINK]   /src/elinks
	...

which means the user will also get a hint at where the elinks binary
is.

Yeah, yeah, useless bloat, I know. But I have to figure out some way to
get the whole tree build time above 1 minute. ;-)
This commit is contained in:
Jonas Fonseca 2005-09-28 21:32:31 +02:00 committed by Jonas Fonseca
parent 94ed6fa754
commit ed2dc18408

View File

@ -14,25 +14,29 @@ else
mquiet = quiet_
endif
CURPATH = $(shell pwd)
TOPPATH = $(shell cd $(path_to_top) && pwd)
RELPATH = $(shell echo '$(CURPATH)' | sed 's,$(TOPPATH),,')
# Show the command (quiet or non-quiet version based on the assignment
# just above) and then execute it.
ncmd = $(if $($(quiet)cmd_$(1)),echo $($(quiet)cmd_$(1)) &&) $(cmd_$(1))
cmd = @$(if $($(quiet)cmd_$(1)),echo $($(quiet)cmd_$(1)) &&) $(cmd_$(1))
mcmd = @$(if $($(mquiet)cmd_$(1)),echo $($(mquiet)cmd_$(1)) &&) $(cmd_$(1))
quiet_cmd_compile = ' [CC] $<'
quiet_cmd_compile = ' [CC] $(RELPATH)/$<'
masq_cmd_compile = $(COMPILE) -c $<
cmd_compile = $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
# Rule to compile a set of .o files into one .o file
quiet_cmd_ld_objs = " [LD] $@"
quiet_cmd_ld_objs = " [LD] $(RELPATH)/$@"
cmd_ld_objs = $(LD) -r -o $@ $(filter $(OBJS), $^)
quiet_cmd_link = ' [LINK] $@'
quiet_cmd_link = ' [LINK] $(RELPATH)/$@'
cmd_link = $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
# Recursive make
quiet_cmd_recmake = "[MAKE $$target] $$subdir"
quiet_cmd_recmake = "[MAKE $$target] $(RELPATH)/$$subdir"
cmd_recmake = $(MAKE) -C $$subdir $$target