Skip to content

Support GNU make's undefine directive - #313

Open
sean0407 wants to merge 1 commit into
google:masterfrom
sean0407:fix/google-kati-307-undefine-directive
Open

sean0407 wants to merge 1 commit into
google:masterfrom
sean0407:fix/google-kati-307-undefine-directive

Conversation

@sean0407

Copy link
Copy Markdown

Fixes #307

Kati currently rejects GNU make's undefine directive with missing separator.

This change parses undefine directives, including expanded variable names and directive prefixes, and removes variables while preserving command-line and override precedence unless override is used. The regression tests compare Kati's behavior with GNU Make for normal, expanded-name, export, and override cases.

The contributor entries are included as required by the repository's contribution guide for a first contribution to this project.

Checks run:

  • make -B ckati — passed in an isolated, network-disabled container.
  • go test -v -run 'TestKati/undefine' . — passed (both added cases).
  • git diff --check — passed.
  • Full go test . has the same 101 failing subtests on this change and the unmodified base commit; no failure is unique to this change.

@sean0407
sean0407 requested a review from a team as a code owner October 23, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

undefine not accepted

1 participant