blob: 9451303dd7b1667768a82796f849bc1a5eaa6786 [file] [log] [blame]
Brad Bishop6dbb3162019-11-25 09:41:34 -05001From dac375f640fecd45e6254a8d870ee37ec8f41670 Mon Sep 17 00:00:00 2001
Brad Bishop316dfdd2018-06-25 12:45:53 -04002From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Thu, 2 Nov 2017 16:21:22 +0200
4Subject: [PATCH] Makefile.am: create src directory before attempting to write
5 there
6
7Otherwise out of tree builds will fail.
8
9Upstream-Status: Pending
10Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Brad Bishop6dbb3162019-11-25 09:41:34 -050011
Brad Bishop316dfdd2018-06-25 12:45:53 -040012---
13 Makefile.am | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/Makefile.am b/Makefile.am
Brad Bishop6dbb3162019-11-25 09:41:34 -050017index 441ae94..882969d 100644
Brad Bishop316dfdd2018-06-25 12:45:53 -040018--- a/Makefile.am
19+++ b/Makefile.am
Brad Bishop6dbb3162019-11-25 09:41:34 -050020@@ -86,7 +86,7 @@ EXTRA_DIST = src/signames.c README.md misc/git-version-gen
Brad Bishop316dfdd2018-06-25 12:45:53 -040021 CLEANFILES = src/signames.h
22
Brad Bishop6dbb3162019-11-25 09:41:34 -050023 src/signames.h: src/signames.c Makefile src/$(am__dirstamp)
Brad Bishop316dfdd2018-06-25 12:45:53 -040024- export LC_ALL=C ; \
25+ export LC_ALL=C ; mkdir -p src ; \
26 @CPP@ -dM $< |\
27 tr -s '\t ' ' ' | sort -n -k 3 | sed \
28 's:#define SIG\([A-Z][A-Z]*[0-9]*\) \([0-9][0-9]*\).*$\:{\ \2,"\1" },:p;d' | \