aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/090_parallel-make.patch
blob: 01a333a71c59a8e3982ef3b2704653915332c635 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Subject: Fix parallel make issue
From: Tatsuya Kinoshita <tats@debian.org>
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=726188
Bug-Gentoo: https://bugs.gentoo.org/show_bug.cgi?id=362249
Bug: https://sourceforge.net/p/w3m/patches/64/

    Depend on funcname.tab to fix parallel make issue of scripts

    Avoid prerequisite $(IMGOBJS) to fix parallel make issue of w3mimg

diff --git a/Makefile.in b/Makefile.in
index 52a0aae..b283f29 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -250,7 +250,7 @@ install-po:
 	 (cd $$subdir && $(MAKE) install); \
 	done
 
-all-scripts:
+all-scripts: funcname.tab
 	for dir in $(SCRIPTSUBDIRS);	\
 	do	\
 		(cd $$dir && $(MAKE) $(MAKE_ARGS)); \
diff --git a/w3mimg/Makefile.in b/w3mimg/Makefile.in
index dfc550c..8e2ad73 100644
--- a/w3mimg/Makefile.in
+++ b/w3mimg/Makefile.in
@@ -16,9 +16,9 @@ IMGCFLAGS=@IMGX11CFLAGS@ @IMGFBCFLAGS@ @IMGWINCFLAGS@
 IMGOBJS=@IMGOBJS@
 
 .PHONY: $(SUBDIRS)
-all: @IMGTARGETS@ w3mimg.a
+all: w3mimg.a
 
-w3mimg.a: $(IMGOBJS)
+w3mimg.a: w3mimg.o @IMGTARGETS@
 	$(AR) rv $@ $(IMGOBJS)
 	$(RANLIB) $@