File: 0012-Ensure-build-failures-in-subdirectories-cause-entire.patch

package info (click to toggle)
docbook-to-man 1%3A2.0.0-49
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,824 kB
  • sloc: ansic: 5,843; makefile: 155; sh: 28
file content (39 lines) | stat: -rw-r--r-- 842 bytes parent folder | download | duplicates (3)
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
From: Chris Lamb <lamby@debian.org>
Date: Mon, 24 Aug 2020 12:22:39 +0100
Subject: Ensure build failures in subdirectories cause entire build failure.

---
 Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index d7611b8..5e628bf 100644
--- a/Makefile
+++ b/Makefile
@@ -45,22 +45,22 @@ PIECES = 	cmd Instant Transpec
 
 
 all:
-	for dir in $(PIECES); \
+	set -e; for dir in $(PIECES); \
 	do (cd $$dir; $(MAKE) all); \
 	done
 
 install:
-	for dir in $(PIECES); \
+	set -e; for dir in $(PIECES); \
 	do (cd $$dir; $(MAKE) ROOT=$(ROOT) install); \
 	done
 
 
 clean:
-	for dir in $(PIECES); \
+	set -e; for dir in $(PIECES); \
 	do (cd $$dir; $(MAKE) clean); \
 	done
 
 clobber:    
-	for dir in $(PIECES); \
+	set -e; for dir in $(PIECES); \
 	do (cd $$dir; $(MAKE) clobber); \
 	done