Skip to content

Commit f9dba77

Browse files
itamaroclaude
andcommitted
Don't use $< in the pkg-config install rules
$< is only defined for suffix rules in POSIX make, so the recipe failed with BSD make. Set the source file name in each rule instead. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
1 parent 7145bd6 commit f9dba77

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎Makefile.pre.in‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2955,16 +2955,16 @@ INSTALL_PC= \
29552955
done; \
29562956
fi; \
29572957
if test "$$dir" = '$(prefix)'; then \
2958-
sed "s|^prefix=.*|prefix=\$${pcfiledir}$$rel|" $< > $@; \
2958+
sed "s|^prefix=.*|prefix=\$${pcfiledir}$$rel|" $$src > $@; \
29592959
else \
2960-
cp $< $@; \
2960+
cp $$src $@; \
29612961
fi
29622962

29632963
Misc/python-install.pc: Misc/python.pc
2964-
$(INSTALL_PC)
2964+
src=Misc/python.pc; $(INSTALL_PC)
29652965

29662966
Misc/python-embed-install.pc: Misc/python-embed.pc
2967-
$(INSTALL_PC)
2967+
src=Misc/python-embed.pc; $(INSTALL_PC)
29682968

29692969
# macOS' make seems to ignore a dependency on a
29702970
# "$(BUILD_SCRIPTS_DIR): $(MKDIR_P) $@" rule.

0 commit comments

Comments
 (0)