1

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?

einpoklum
  • 118,144
  • 57
  • 340
  • 684

2 Answers2

1

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
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
1

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.

einpoklum
  • 118,144
  • 57
  • 340
  • 684
raspy
  • 3,995
  • 1
  • 14
  • 18