shithub: mc

Download patch

ref: a5a4e162cec3bb59c7d88a703d45edc916392453
parent: 86dab9d203405b143a29f2fa137af01b7c943f65
author: Ori Bernstein <[email protected]>
date: Fri Aug 15 11:09:13 EDT 2014

Disable implicit rules.

    Implicit rules were preventing the '.deps' directory
    from being created correctly. They also might have caused
    sporadic failures due to a missing dependency on generated
    headers.

    This kills them. Explicit is better than implicit.

--- a/mk/c.mk
+++ b/mk/c.mk
@@ -10,6 +10,8 @@
 CFLAGS += -g
 CFLAGS += -MMD -MP -MF ${_DEPSDIR}/$(subst /,-,$*).d
 
+# disable implicit rules.
+.SUFFIXES:
 .PHONY: clean clean-gen clean-bin clean-obj clean-misc clean-backups
 .PHONY: all
 
--- a/mk/lexyacc.mk
+++ b/mk/lexyacc.mk
@@ -1,3 +1,5 @@
+.SUFFIXES:
+
 NECFLAGS = $(subst -Werror,,$(subst -Wall,,$(CFLAGS)))
 
 %.h %.c: %.y