blob: 84dee415ad6fb704503ab5dffe42f3f2590245a0 [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001From cbe8bd2948f522062c6170f581e1e265692a9a55 Mon Sep 17 00:00:00 2001
2From: Sergei Trofimovich <slyich@gmail.com>
3Date: Sun, 24 Oct 2021 18:53:04 +0100
4Subject: [PATCH] Makefile: fix parallel build of examples
5
6Without the change examples fails to build as:
7
8 $ LANG=C make -j
9 make -C src
10 make -C examples
11 make[1]: Entering directory 'libb64/src'
12 cc -O3 -Werror -pedantic -I../include -c -o cencode.o cencode.c
13 make[1]: Entering directory 'libb64/examples'
14 make[1]: *** No rule to make target 'libb64.a', needed by 'c-example1'. Stop.
15 make[1]: Leaving directory 'libb64/examples'
16 make: *** [Makefile:8: all_examples] Error 2
17 make: *** Waiting for unfinished jobs....
18 cc -O3 -Werror -pedantic -I../include -c -o cdecode.o cdecode.c
19 ar rv libb64.a cencode.o cdecode.o
20 ar: creating libb64.a
21 a - cencode.o
22 a - cdecode.o
23 make[1]: Leaving directory 'libb64/src'
24
25Upstream-Status: Submitted [https://github.com/libb64/libb64/pull/9]
26Signed-off-by: Khem Raj <raj.khem@gmail.com>
27---
28 Makefile | 2 +-
29 1 file changed, 1 insertion(+), 1 deletion(-)
30
31diff --git a/Makefile b/Makefile
32index db40356..aa48c76 100644
33--- a/Makefile
34+++ b/Makefile
35@@ -4,7 +4,7 @@ all_src:
36 $(MAKE) -C src
37 all_base64: all_src
38 $(MAKE) -C base64
39-all_examples:
40+all_examples: all_src
41 $(MAKE) -C examples
42
43 clean: clean_src clean_base64 clean_include clean_examples
44--
452.37.2
46