Makefile21 recipe commences before first target Stop
This error message is usually encountered when there is a syntax error in the Makefile.
In this specific case, it indicates that there is a recipe (commands for building a target) starting before the first target declaration. A Makefile should always start with a target declaration before any recipes.
To fix this error, you need to ensure that you have defined at least one target before specifying any recipes. Here is an example of a basic Makefile structure:
target_name:
# recipe commands for building the target
.PHONY: target_name
Make sure to replace "target_name" with an actual target name and provide the appropriate recipe commands for building that target.
If you provide your Makefile content, I can assist you in identifying the specific issue
原文地址: https://www.cveoy.top/t/topic/hQc1 著作权归作者所有。请勿转载和采集!