Merge branch 'makefile' into 'master'

Makefile: propagate -j option to submake

See merge request !101
This commit is contained in:
Yanyan Jiang 2017-07-04 19:12:29 +08:00
commit f3ab1c7540
2 changed files with 4 additions and 4 deletions

View File

@ -5,8 +5,8 @@ AM_HOME ?= $(shell pwd)
.PHONY: all clean .PHONY: all clean
all: all:
@cd am && make @$(MAKE) -C am
# TODO: clean everything # TODO: clean everything
clean: clean:
@cd am && make clean @$(MAKE) -C am clean

View File

@ -65,6 +65,6 @@ DEPS = $(addprefix $(DST_DIR)/, $(addsuffix .d, $(basename $(SRCS))))
# Dependent AM and libraries # Dependent AM and libraries
.PHONY: $(LIBS) am .PHONY: $(LIBS) am
am: am:
cd $(AM_HOME) && make $(MAKE) -C $(AM_HOME)
$(LIBS): %: $(LIBS): %:
cd $(AM_HOME)/libs/$* && make $(MAKE) -C $(AM_HOME)/libs/$*