einpoklum
einpoklum

Reputation: 131626

How can I have clearmake default to GNU compatibility mode?

In a ClearCase codebase I am (unfortunately) working on, I use

clearmake -C gnu

to build. Can I somehow make GNU the default compatibility mode, so that I don't have to remember to type the extra argument?

Upvotes: 1

Views: 137

Answers (2)

raspy
raspy

Reputation: 4261

If the GNU make compatibility option is required for the build system, I find the most reliable way is to create a Makefile.options file (in the same directory as the Makefile) that says:

CCASE_MAKE_COMPAT=gnu

This is a build options specification file that will be read automatically when the Makefile is read. This should be added to the source control so it is propagated to every user using clearmake.

Upvotes: 1

VonC
VonC

Reputation: 1324657

The clearmake man page includes:

Alternatively, you can use environment variable CCASE_MAKE_COMPAT in a BOS file or in the environment to specify a compatibility mode.

So:

export CCASE_MAKE_COMPAT=gnu

Upvotes: 1

Related Questions