mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
Makefy Makefile.lib even more.
This commit is contained in:
parent
792e4c4355
commit
7a2735357f
11
Makefile.lib
11
Makefile.lib
@ -34,8 +34,8 @@ quiet_cmd_ld_objs = " [LD] $(RELPATH)$@"
|
|||||||
cmd_link = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
|
cmd_link = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
|
||||||
|
|
||||||
# Recursive make
|
# Recursive make
|
||||||
quiet_cmd_recmake = "[MAKE $$target] $(RELPATH)$$subdir"
|
quiet_cmd_recmake = "[MAKE $(3)] $(RELPATH)$(2)"
|
||||||
cmd_recmake = $(MAKE) -C $$subdir $$target
|
cmd_recmake = $(MAKE) -C $(2) $(3)
|
||||||
|
|
||||||
quiet_cmd_installdata = " [INSTALL] $(RELPATH)$(2) -> $(3)"
|
quiet_cmd_installdata = " [INSTALL] $(RELPATH)$(2) -> $(3)"
|
||||||
cmd_installdata = $(INSTALL_DATA) $(2) $(3)
|
cmd_installdata = $(INSTALL_DATA) $(2) $(3)
|
||||||
@ -110,12 +110,11 @@ endif
|
|||||||
# Recursion:
|
# Recursion:
|
||||||
|
|
||||||
.PHONY: all-recursive install-recursive clean-recursive list-recursive
|
.PHONY: all-recursive install-recursive clean-recursive list-recursive
|
||||||
|
|
||||||
all-recursive install-recursive clean-recursive list-recursive:
|
all-recursive install-recursive clean-recursive list-recursive:
|
||||||
ifdef SUBDIRS
|
ifdef SUBDIRS
|
||||||
@target=`echo $@ | sed s/-recursive//`; \
|
@$(foreach subdir,$(sort $(SUBDIRS)), \
|
||||||
for subdir in $(sort $(SUBDIRS)); do \
|
$(call ncmd,recmake,$(subdir),$(subst -recursive,,$@)) || exit 1;)
|
||||||
$(call ncmd,recmake) || exit 1; \
|
|
||||||
done
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: all-recursive all-default all-local
|
all: all-recursive all-default all-local
|
||||||
|
Loading…
Reference in New Issue
Block a user