Skip to content

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

Merged
martin-frbg merged 1 commit intoOpenMathLib:developfrom
vtjnash:jn/makefile-rule-dynamic-2
Apr 15, 2026
Merged

Reapply "build: fix rule for building dynamic files"#5707
martin-frbg merged 1 commit intoOpenMathLib:developfrom
vtjnash:jn/makefile-rule-dynamic-2

Conversation

@vtjnash
Copy link
Copy Markdown
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.
@martin-frbg martin-frbg added this to the 0.3.33 milestone Apr 15, 2026
@martin-frbg martin-frbg merged commit 330abcd into OpenMathLib:develop Apr 15, 2026
101 of 102 checks passed
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.

2 participants