blob: 8c8f3b717c87add9acc01bbbdc83847721a56a24 [file] [log] [blame]
Andrew Geissler5f350902021-07-23 13:09:54 -04001From 24a3e0c48f9ebe473b5f1078663e275c27d0537f Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Fri, 2 Jul 2021 09:08:21 +0000
4Subject: [PATCH] Makefile: check the file if patched or not
5
6Check the file if patched or not to avoid patched more than
7one time.
8
9Upstream-Status: Inappropriate (OE-specific)
10
11Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
12---
13 Makefile | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/Makefile b/Makefile
17index f4a26f5..7bc748e 100644
18--- a/Makefile
19+++ b/Makefile
20@@ -61,7 +61,7 @@ miniperlmain$O: $(CROSSPATCHED)
21 # Original versions are not saved anymore; patch generally takes care of this,
22 # and if that fails, reaching for the source tarball is the safest option.
23 $(CROSSPATCHED): %.applied: %.patch
24- patch -p1 -i $< && touch $@
Mingli Yu66d661a2021-07-28 13:39:59 +080025+ test ! -f $@ && (patch -p1 -i $< && touch $@) || echo "$@ exist"
Andrew Geissler5f350902021-07-23 13:09:54 -040026
27 # ---[ common ]-----------------------------------------------------------------
28
29--
302.29.2
31