This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
forked from libffi/libffi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile.sed~
78 lines (78 loc) · 2.91 KB
/
makefile.sed~
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/^$/n
x
/^$/bS
x
/\\$/{H;d;}
{H;s/.*//;x;}
bM
:S
x
/\\$/{h;d;}
{h;s/.*//;x;}
:M
s/\(\n\) /\1 /g
/^ /d
/^[ ]*[\#]/d
/^VPATH *=/d
s/^srcdir *=.*/srcdir = ./
s/^top_srcdir *=.*/top_srcdir = ./
/[:=]/!d
/^\./d
/ = /b
/ .= /b
/:/!b
s/:.*/:/
s/ / /g
s/ \([a-z][a-z-]*[a-zA-Z0-9]\)\([ :]\)/ \1 \1-all\2/g
s/^\([a-z][a-z-]*[a-zA-Z0-9]\)\([ :]\)/\1 \1-all\2/
s/ / /g
/^all all-all[ :]/i\
all-configured : all-all
s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
/-all-all/d
a\
@ HOST="$(HOST)\" \\\
; test ".$$HOST" = "." && HOST=` sh /mnt/c/Users/ACER/Downloads/libffi-3.4.6/libffi/config.guess ` \\\
; BUILD=` grep "^#### $$HOST " Makefile | sed -e 's/.*|//' ` \\\
; use=` basename "$\@" -all `; n=` echo $$BUILD | wc -w ` \\\
; echo "MAKE $$HOST : $$n * $\@"; if test "$$n" -eq "0" ; then : \\\
; BUILD=` grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' ` ; fi \\\
; test ".$$BUILD" = "." && BUILD="." \\\
; test "$$use" = "$\@" && BUILD=` echo "$$BUILD" | tail -1 ` \\\
; for i in $$BUILD ; do test ".$$i" = "." && continue \\\
; (cd "$$i" && test ! -f configure && $(MAKE) $$use) || exit; done
/dist-all *:/a\
@ HOST="$(HOST)\" \\\
; test ".$$HOST" = "." && HOST=` sh /mnt/c/Users/ACER/Downloads/libffi-3.4.6/libffi/config.guess ` \\\
; BUILD=` grep "^#### $$HOST " Makefile | sed -e 's/.*|//' ` \\\
; found=` echo $$BUILD | wc -w ` \\\
; echo "MAKE $$HOST : $$found $(PACKAGE)-$(VERSION).tar.*" \\\
; if test "$$found" -eq "0" ; then : \\\
; BUILD=` grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' ` \\\
; fi ; for i in $$BUILD ; do test ".$$i" = "." && continue \\\
; for f in $$i/$(PACKAGE)-$(VERSION).tar.* \\\
; do test -f "$$f" && mv "$$f" $(PUB). ; done ; break ; done
/dist-[a-zA-Z0-9]*-all *:/a\
@ HOST="$(HOST)\" \\\
; test ".$$HOST" = "." && HOST=` sh ./config.guess ` \\\
; BUILD=` grep "^#### $$HOST " Makefile | sed -e 's/.*|//' ` \\\
; found=` echo $$BUILD | wc -w ` \\\
; echo "MAKE $$HOST : $$found $(PACKAGE)-$(VERSION).*" \\\
; if test "$$found" -eq "0" ; then : \\\
; BUILD=` grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' ` \\\
; fi ; for i in $$BUILD ; do test ".$$i" = "." && continue \\\
; for f in $$i/$(PACKAGE)-$(VERSION).* \\\
; do test -f "$$f" && mv "$$f" $(PUB). ; done ; break ; done
/distclean-all *:/a\
@ HOST="$(HOST)\" \\\
; test ".$$HOST" = "." && HOST=` sh /mnt/c/Users/ACER/Downloads/libffi-3.4.6/libffi/config.guess ` \\\
; BUILD=` grep "^#### .*|" Makefile | sed -e 's/.*|//' ` \\\
; use=` basename "$\@" -all `; n=` echo $$BUILD | wc -w ` \\\
; echo "MAKE $$HOST : $$n * $\@ (all local builds)" \\\
; test ".$$BUILD" = "." && BUILD="." \\\
; for i in $$BUILD ; do test ".$$i" = "." && continue \\\
; echo "# rm -r $$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\
; for i in $$BUILD ; do test ".$$i" = "." && continue \\\
; echo "$$i" | grep "^/" > /dev/null && continue \\\
; echo "$$i" | grep "^../" > /dev/null && continue \\\
; echo "rm -r $$i"; (rm -r "$$i") ; done ; rm Makefile