Trepan-Debuggers / Trepan-Debuggers/remake

Checking correctness for multi-target rules

Open
#35 17 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs design new feature
Dominant language
C
Stars
850
Forks
80
PR merge metrics
No merged PRs in 30d

Description

Multiple targets can be specified in a single make rule. While they are written only once at such a place, the make software usually expands the specification into several rules with the same recipe so far.
But this does not happen with pattern rules:

…
Pattern rules may have more than one target. Unlike normal rules, this does not act as many different rules with the same prerequisites and recipe. If a pattern rule has multiple targets, make knows that the rule’s recipe is responsible for making all of the targets. The recipe is executed only once to make all the targets.
…

Can a variant of the command “remake --targets” help to identify questionable multi-target rules?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the remake --targets command and the linked GNU Make documentation on multiple targets and pattern rules. Compare the behavior described in the linked development discussion and determine whether the command can identify questionable multi-target rules; done would require a settled scope and corresponding implementation or documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
build-system, cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.