Skip to content

Reapply "build: fix rule for building dynamic files"#5707

Open
vtjnash wants to merge 1 commit intoOpenMathLib:developfrom
vtjnash:jn/makefile-rule-dynamic-2
Open

Reapply "build: fix rule for building dynamic files"#5707
vtjnash wants to merge 1 commit intoOpenMathLib:developfrom
vtjnash:jn/makefile-rule-dynamic-2

Conversation

@vtjnash
Copy link
Contributor

@vtjnash vtjnash commented Mar 24, 2026

This reverts commit 7eab365 and fixes the pattern rule requirement "% must match a non-empty stem" to match at least '.' in the pattern.

This whole file could actually be substantially simplified to just:

%.$(SUFFIX): %.c
	$(CC) $(CFLAGS) -c $< -o $(@F)

%.$(PSUFFIX): %.c
	$(CC) $(PFLAGS) -c $< -o $(@F)

if desired to entirely avoid the copy-paste duplication, but the net effect is the same.

This reverts commit 7eab365 and fixes
the pattern rule requirement "% must match a non-empty stem" to match at
least '.' in the pattern.

This whole file could actually be substantially simplified to just:

	%.$(SUFFIX): %.c
		$(CC) $(CFLAGS) -c $< -o $(@f)

	%.$(PSUFFIX): %.c
		$(CC) $(PFLAGS) -c $< -o $(@f)

if desired to entirely avoid the copy-paste duplication, but the net
effect is the same.
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.

1 participant