Commit 7e46666a authored by Ben Avison's avatar Ben Avison
Browse files

Add missing phony targets

* Add `standalone` target for CApp makefile clients.

  This is analogous to `standalone` for CModule clients, and is implemented
  as an alias for the `all` target. This is useful because cppcheck CI jobs
  need a consistent way to ensure that all local autogenerated source and
  header files have been created, so that cppcheck can fully analyse the
  source code.

* Enable install target for cross-compiling CLibrary components.

  `install` was missing from the list of targets that need to be re-run from
  within the `objs` subdirectory.
parent 5a8e41dc
...@@ -5,7 +5,7 @@ INCLUDED_CAPP = YES ...@@ -5,7 +5,7 @@ INCLUDED_CAPP = YES
# #
# This makefile provides the following phony targets: # This makefile provides the following phony targets:
# #
# all install debug resources rom rom_link # all standalone install debug resources rom rom_link
# #
# #
# This fragment uses the following macros set by the master makefile. # This fragment uses the following macros set by the master makefile.
...@@ -136,7 +136,7 @@ clean:: ...@@ -136,7 +136,7 @@ clean::
@rm -rf objs @rm -rf objs
@echo ${COMPONENT}: cleaned @echo ${COMPONENT}: cleaned
else else
all install debug resources rom rom_link links: ${SYMLINK_DEPEND} all standalone install debug resources rom rom_link links: ${SYMLINK_DEPEND}
$(foreach linksource,${SOURCES_TO_SYMLINK}, \ $(foreach linksource,${SOURCES_TO_SYMLINK}, \
$(shell \ $(shell \
linkdest=`echo ${linksource} | sed -e 's,\([^/]\+\)/\([^/]\+\)$$,\2.\1,' -e 's,^,objs/,'`; \ linkdest=`echo ${linksource} | sed -e 's,\([^/]\+\)/\([^/]\+\)$$,\2.\1,' -e 's,^,objs/,'`; \
...@@ -182,7 +182,7 @@ ROM_LIBS_ = $(filter-out ${RLIB},${ROM_LIBS}) ${ROMSTUBS} ...@@ -182,7 +182,7 @@ ROM_LIBS_ = $(filter-out ${RLIB},${ROM_LIBS}) ${ROMSTUBS}
ROM_SYMS = ${ABSSYM} ROM_SYMS = ${ABSSYM}
endif endif
all: ${TARGET}${SUFFIX_ABSOLUTE} all standalone: ${TARGET}${SUFFIX_ABSOLUTE}
@${ECHO} ${COMPONENT}: application built @${ECHO} ${COMPONENT}: application built
# GNU make seems to treat any double-colon rule with no dependencies as # GNU make seems to treat any double-colon rule with no dependencies as
......
...@@ -132,7 +132,7 @@ clean:: ...@@ -132,7 +132,7 @@ clean::
@rm -rf objs @rm -rf objs
@echo ${COMPONENT}: cleaned @echo ${COMPONENT}: cleaned
else else
all_libs export export_hdrs export_libs links: ${SYMLINK_DEPEND} all_libs export export_hdrs export_libs install links: ${SYMLINK_DEPEND}
$(foreach linksource,${SOURCES_TO_SYMLINK}, \ $(foreach linksource,${SOURCES_TO_SYMLINK}, \
$(shell \ $(shell \
linkdest=`echo ${linksource} | sed -e 's,\([^/]\+\)/\([^/]\+\)$$,\2.\1,' -e 's,^,objs/,'`; \ linkdest=`echo ${linksource} | sed -e 's,\([^/]\+\)/\([^/]\+\)$$,\2.\1,' -e 's,^,objs/,'`; \
......
...@@ -21,7 +21,7 @@ INCLUDED_CAPP = YES ...@@ -21,7 +21,7 @@ INCLUDED_CAPP = YES
# #
# This makefile provides the following phony targets: # This makefile provides the following phony targets:
# #
# all install debug resources rom rom_link # all standalone install debug resources rom rom_link
# #
# #
# This fragment uses the following macros set by the master makefile. # This fragment uses the following macros set by the master makefile.
...@@ -157,7 +157,7 @@ ROM_LIBS_ = $(filter-out ${RLIB},${ROM_LIBS}) ${ROMSTUBS} ...@@ -157,7 +157,7 @@ ROM_LIBS_ = $(filter-out ${RLIB},${ROM_LIBS}) ${ROMSTUBS}
ROM_SYMS = ${ABSSYM} ROM_SYMS = ${ABSSYM}
endif endif
all: ${TARGET} all standalone: ${TARGET}
@${ECHO} ${COMPONENT}: application built @${ECHO} ${COMPONENT}: application built
${DIRS} :: ${DIRS} ::
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment