shithub: mc

Download patch

ref: 2a6089aa2df2421b5069e001190b0a60a6611c4d
parent: bc4494b485a0389d91bae2e2920abc5ab0c55129
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