47 lines
1.2 KiB
Plaintext
47 lines
1.2 KiB
Plaintext
# QMK for TencentOS
|
|
# @author Jimmin.huang jimmin@163.com
|
|
# Makefile template
|
|
########################################################################
|
|
|
|
ifeq (,$(findstring clean,$(MAKECMDGOALS)))
|
|
ifneq (help,$(findstring help,$(MAKECMDGOALS)))
|
|
|
|
all::
|
|
@true
|
|
#
|
|
# Attempt to build the depend files. If it fails, the depend file is
|
|
# removed so that it is not included in later builds.
|
|
#
|
|
#${BLDDIR}/%.P : %.c ${BLDDIR}/.tree
|
|
# @$(ECHO) "[$(BP)] DEP ${LOCALDIR}/$<"
|
|
|
|
#${BLDDIR}/%.P : %.cc ${BLDDIR}/.tree
|
|
# @$(ECHO) "[$(BP)] DEP ${LOCALDIR}/$<"
|
|
|
|
|
|
#
|
|
# If there are C or C++ files in this directory, include the
|
|
# depend files for them.
|
|
#
|
|
ifeq ($(findstring _COMPILER,$(MAKECMDGOALS))$(findstring variable,$(MAKECMDGOALS)),)
|
|
ifneq ($(strip ${LSRCS}),)
|
|
ifneq (,$(findstring .o,$(MAKECMDGOALS)))
|
|
-include $(addprefix ${BLDDIR}/,$(MAKECMDGOALS:.o=.P)) $(addprefix ${BLDDIR}/,$(MAKECMDGOALS:.o=.sig))
|
|
else
|
|
-include $(addprefix ${BLDDIR}/,$(addsuffix .P,$(basename $(LSRCS))))
|
|
-include $(addprefix ${BLDDIR}/,$(addsuffix .sig,$(basename $(LSRCS))))
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
endif # help
|
|
endif # !CLEANING
|
|
|
|
clean_d::
|
|
ifeq (@,$(Q))
|
|
@$(ECHO) "[$(BP)] CLEAN DEPS ${LOCALDIR}"
|
|
endif
|
|
$Q$(RM) $(BOBJS:.o=.P)
|
|
|
|
clean:: clean_d
|