Makefile: Set default target to compile and fix makefiles rules

There is no good reason to run install by default, let's run
compile instead. If somebody wants to install, they should
run that target.

Fix the rules for making the make include files,
as the folder had changed, make was wasting time checking
again for implicit rules.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2023-10-20 14:04:49 +02:00
parent 0cf5ea9e3c
commit 68aa50bdcd
1 changed files with 5 additions and 3 deletions

View File

@ -6,7 +6,7 @@ OBJS=$(abspath $(addprefix $(COMPONENT_OUTPUT_DIR)/,${SRCS:.c=.${VARIANT}.o}))
LIBFILE=${LIB_NAME}.a
VERSION_FILE:=${LIB_NAME}.version
all: install
all: compile
DEPENDFILES:=$(addsuffix .d,$(basename ${OBJS}))
@ -62,5 +62,7 @@ ${BSIM_LIBS_DIR}/% : $(COMPONENT_OUTPUT_DIR)/%
install: ${BSIM_LIBS_DIR}/${LIBFILE} ${BSIM_LIBS_DIR}/${VERSION_FILE}
make/pre.mk: ;
make/common_post.mk: ;
# Let's explicitly tell make there is rules to make these make files:
make_inc/pre.mk: ;
make_inc/common_post.mk: ;
${BSIM_BASE_PATH}/common/pre.make.inc: ;