[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Disabling builtin rules / varialbes from within a Makefile?
From: |
Paul Smith |
Subject: |
Re: Disabling builtin rules / varialbes from within a Makefile? |
Date: |
Sun, 11 Sep 2022 13:21:30 -0400 |
User-agent: |
Evolution 3.44.4 (by Flathub.org) |
On Sun, 2022-09-11 at 19:12 +0200, Sébastien Hinderer wrote:
> Is there a way, in a Makefile, to get the same result as with the
> -r/--no-builtin-rules or -R/--no-builtin-variables options, please?
You can just add them to MAKEFLAGS in the makefile itself:
MAKEFLAGS += -rR
Note, this requires that you have GNU make 4.0 or better: previous
versions don't support this.