diff --git a/cmake/Makefile.sample b/cmake/Makefile.sample index ae771d49c..bea332e6f 100644 --- a/cmake/Makefile.sample +++ b/cmake/Makefile.sample @@ -16,33 +16,33 @@ # repository which is why it cannot be delivered directly in place. # To use it, simply copy it to the top directory. As this just contains # wrappers for the CMake targets, it is unlikely to change. Projects -# are also free to customize this file and add their own targets after +# are also free to customize this file and add their own targets after # copying it to the top of the source tree. # -# For _ALL_ targets defined in this file the build tree location may -# be specified via the "O" variable (i.e. make O= all). -# If not specified then the "build" subdirectory will be assumed. +# For _ALL_ targets defined in this file the build tree location may +# be specified via the "O" variable (i.e. make O= all). +# If not specified then the "build" subdirectory will be assumed. # # This wrapper defines the following major targets: # prep -- Runs CMake to create a new or re-configure an existing build tree # Note that multiple build trees can exist from a single source -# Other control options (such as "SIMULATION") may be passed to CMake via +# Other control options (such as "SIMULATION") may be passed to CMake via # make variables depending on the mission build scripts. These will be -# cached in the build tree so they do not need to be set again thereafter. +# cached in the build tree so they do not need to be set again thereafter. # # all -- Build all targets in the CMake build tree -# +# # install -- Copy all files to the installation tree and run packaging scripts -# The "DESTDIR" environment variable controls where the files are copied +# The "DESTDIR" environment variable controls where the files are copied # # clean -- Clean all targets in the CMake build tree, but not the build tree itself. # -# distclean -- Entirely remove the build directory specified by "O" +# distclean -- Entirely remove the build directory specified by "O" # Note that after this the "prep" step must be run again in order to build. # Use caution with this as it does an rm -rf - don't set O to your home dir! # # doc -- Build all doxygen source documentation. The HTML documentation will be -# generated under the build tree specified by "O". +# generated under the build tree specified by "O". # # usersguide -- Build all API/Cmd/Tlm doxygen documentation. The HTML documentation # will be generated under the build tree specified by "O". @@ -53,7 +53,7 @@ # test -- Run all unit tests defined in the build. Unit tests will typically only # be executable when building with the "SIMULATION=native" option. Otherwise # it is up to the user to copy the executables to the target and run them. -# +# # lcov -- Runs the "lcov" tool on the build tree to collect all code coverage # analysis data and build the reports. Code coverage data may be output by # the "make test" target above. @@ -91,7 +91,7 @@ $(DIRTGTS): endif # For any other goal that is not one of the known local targets, pass it to the arch build -# as there might be a target by that name. For example, this is useful for rebuilding +# as there might be a target by that name. For example, this is useful for rebuilding # single unit test executable files while debugging from the IDE FILETGTS := $(filter-out $(DIRTGTS),$(OTHERTGTS)) ifneq ($(FILETGTS),) @@ -103,7 +103,7 @@ endif # Certain special ones should be passed via cache (-D) options to CMake. # These are only needed for the "prep" target but they are computed globally anyway. PREP_OPTS := - + ifneq ($(INSTALLPREFIX),) PREP_OPTS += -DCMAKE_INSTALL_PREFIX=$(INSTALLPREFIX) endif @@ -125,7 +125,7 @@ install: prep $(O)/.prep: mkdir -p "$(O)" (cd "$(O)/$(BUILDDIR)" && cmake $(PREP_OPTS) "$(CURDIR)/cfe") - echo "$(PREP_OPTS)" > "$(O)/.prep" + echo "$(PREP_OPTS)" > "$(O)/.prep" clean: $(MAKE) --no-print-directory -C "$(O)" mission-clean @@ -141,7 +141,7 @@ test: lcov: lcov --capture --rc lcov_branch_coverage=1 --directory $(O)/$(ARCH) --output-file $(O)/$(ARCH)/coverage_test.info lcov --rc lcov_branch_coverage=1 --add-tracefile $(O)/$(ARCH)/coverage_base.info --add-tracefile $(O)/$(ARCH)/coverage_test.info --output-file $(O)/$(ARCH)/coverage_total.info - genhtml $(O)/$(ARCH)/coverage_filtered.info --output-directory $(O)/$(ARCH)/lcov + genhtml $(O)/$(ARCH)/coverage_total.info --output-directory $(O)/$(ARCH)/lcov @/bin/echo -e "\n\nCoverage Report Link: file:$(CURDIR)/$(O)/$(ARCH)/lcov/index.html\n" doc: @@ -160,5 +160,4 @@ osalguide: # that is used to indicate the prep step has been done. This way # the prep step does not need to be done explicitly by the user # as long as the default options are sufficient. -$(filter-out prep distclean,$(LOCALTGTS)): $(O)/.prep - +$(filter-out prep distclean,$(LOCALTGTS)): $(O)/.prep