7

I am a newbie to Android makefiles. While reading this file I see a "-include" statement.

What does this actually mean to the build system?

1 Answer 1

8

The include simply means that another makefile should be included. The - means that if the file to include doesn't exist it will simply be ignored:

We can also put a minus sign - in front of include (with no space in-between) to ignore filenames that do not exist. For example:

-include makefile1 makefile2 makefile3

If makefile2 does not exist, then make will skip it, and no error will occur. In general, inserting a minus sign in front of any command tells make to ignore errors that might occur during the execution of that command.

(source)

Sign up to request clarification or add additional context in comments.

1 Comment

Source is now outdated

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.