aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/090_parallel-make.patch
blob: 4912a38445fb5c131226fd8d2a48588d1c4f2db9 (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
Subject: Fix parallel make issue
From: Tatsuya Kinoshita <tats@debian.org>
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) $@