Skip to content

Commit 2b5ddc2

Browse files
committed
Makefile: Disable Make's implict suffix rules
1 parent 01fa440 commit 2b5ddc2

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

make/compiler_flags

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ CXX_VERSION := $(shell $(CXX) -dumpfullversion -dumpversion 2>&1)
7070
CXX_MAJOR := $(word 1,$(subst ., ,$(CXX_VERSION)))
7171
CXX_MINOR := $(word 2,$(subst ., ,$(CXX_VERSION)))
7272

73+
# disable Make's implicit suffix rules
74+
# see: https://www.gnu.org/software/make/manual/html_node/Implicit-Rules.html
75+
# this should make Make slightly faster, as well as avoiding some unexpected
76+
# behavior when there are other files lying around with the same name as
77+
# Stan models
78+
.SUFFIXES:
79+
7380
################################################################################
7481
# Set optional compiler flags for performance
7582
#

0 commit comments

Comments
 (0)