From: Robert Yang Date: Tue, 22 Jan 2019 09:04:00 +0000 (+0800) Subject: dev.mk.in: Fix file name too long error X-Git-Tag: v3.7~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcdf02dfd7e77c6054080c410aacb93ab0cfffcd;p=thirdparty%2Fccache.git dev.mk.in: Fix file name too long error The all_cppflags changes path to filename which causes file name too long error when the path is longer than NAME_MAX (usually 255). Strip srcdir to fix the problem. Signed-off-by: Robert Yang --- diff --git a/dev.mk.in b/dev.mk.in index a3c10fef7..25b89ed7c 100644 --- a/dev.mk.in +++ b/dev.mk.in @@ -1,7 +1,7 @@ # GNU make syntax reigns in this file. all_cflags += -Werror @more_warnings@ -all_cppflags += -MD -MP -MF .deps/$(subst .._,,$(subst /,_,$<)).d +all_cppflags += -MD -MP -MF .deps/$(subst .._,,$(subst /,_,$(subst $(srcdir)/,,$<))).d A2X = a2x ASCIIDOC = asciidoc