-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
131 lines (117 loc) · 3.36 KB
/
Makefile
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
GIT = git
CURL = curl
all:
deps:
git-submodules:
$(GIT) submodule update --init
updatenightly: version/perl.txt version/perl-cpan-path.txt
perl bin/pmbp.pl --print-openssl-stable-branch > version/openssl-stable-branch.txt
perl bin/pmbp.pl --print-libressl-stable-branch > version/libressl-stable-branch.txt
$(GIT) add version/*.txt
$(CURL) -sSLf https://raw.githubusercontent.com/wakaba/ciconfig/master/ciconfig | RUN_GIT=1 REMOVE_UNUSED=1 perl
local/cpan-perl.html:
mkdir -p local
$(CURL) -f -L https://metacpan.org/release/perl > $@
version/perl.txt: bin/extract-latest-perl-version.pl local/cpan-perl.html
mkdir -p version
perl bin/extract-latest-perl-version.pl < local/cpan-perl.html
version/perl-cpan-path.txt: version/perl.txt
## ------ Build ------
lib/perl58perlbrewdeps.pm: Makefile
echo 'BEGIN {' > $@
echo '$$INC{"Module/Pluggable.pm"} = 1;' >> $@
echo '$$INC{"Module/Pluggable/Object.pm"} = 1;' >> $@
echo '$$INC{"Devel/InnerPackage.pm"} = 1;' >> $@
echo '}' >> $@
cat lib/IPC/Cmd.pm >> $@
$(CURL) http://cpansearch.perl.org/src/SIMONW/Module-Pluggable-4.7/lib/Module/Pluggable.pm >> $@
$(CURL) http://cpansearch.perl.org/src/SIMONW/Module-Pluggable-4.7/lib/Module/Pluggable/Object.pm >> $@
$(CURL) http://cpansearch.perl.org/src/SIMONW/Module-Pluggable-4.7/lib/Devel/InnerPackage.pm >> $@
## ------ Tests ------
PROVE = prove
test: test-deps test-main
test-deps: git-submodules deps
test-deps-gha: test-deps
$(GIT) config --global user.email "[email protected]"
$(GIT) config --global user.name "Travis CI"
$(GIT) config --global protocol.file.allow always
test-main:
ifeq "$(TARGET)" ""
$(PROVE) --verbose t/*/*.t
endif
ifeq "$(TARGET)" "normal"
$(PROVE) -j1 --verbose t/pmbp/*.t
endif
ifeq "$(TARGET)" "install-1"
$(PROVE) -j1 --verbose t/pmbp-install-1/*.t
endif
ifeq "$(TARGET)" "update"
$(PROVE) -j1 --verbose t/pmbp-update/*.t
endif
ifeq "$(TARGET)" "lists"
$(PROVE) -j1 --verbose t/pmbp-lists/*.t
endif
ifeq "$(TARGET)" "env"
$(PROVE) -j1 --verbose t/pmbp-env/*.t
endif
ifeq "$(TARGET)" "git"
$(PROVE) -j1 --verbose t/pmbp-git/*.t
endif
ifeq "$(TARGET)" "scan"
$(PROVE) -j1 --verbose t/pmbp-scan/*.t
endif
ifeq "$(TARGET)" "perl"
$(PROVE) --verbose t/pmbp-perl/*.t
endif
ifeq "$(TARGET)" "pm-old"
$(PROVE) --verbose t/pmbp-pm-old/*.t
endif
ifeq "$(TARGET)" "perl-old"
$(PROVE) --verbose t/pmbp-perl-old/*.t
endif
ifeq "$(TARGET)" "imagemagick"
$(PROVE) --verbose t/pmbp-imagemagick/*.t
endif
ifeq "$(TARGET)" "apache"
$(PROVE) --verbose t/pmbp-apache/*.t
endif
ifeq "$(TARGET)" "modperl"
$(PROVE) --verbose t/pmbp-modperl/*.t
endif
ifeq "$(TARGET)" "mecab"
$(PROVE) --verbose t/pmbp-mecab/*.t
endif
ifeq "$(TARGET)" "gd"
$(PROVE) --verbose t/pmbp-gd/*.t
endif
ifeq "$(TARGET)" "rrdtool"
$(PROVE) --verbose t/pmbp-rrdtool/*.t
endif
ifeq "$(TARGET)" "svn"
$(PROVE) --verbose t/pmbp-svn/*.t
endif
ifeq "$(TARGET)" "tls"
$(PROVE) --verbose t/pmbp-tls/*.t
endif
ifeq "$(TARGET)" "tls-2"
$(PROVE) --verbose t/pmbp-tls-2/*.t
endif
ifeq "$(TARGET)" "tls-3"
$(PROVE) --verbose t/pmbp-tls-3/*.t
endif
ifeq "$(TARGET)" "tls-4"
$(PROVE) --verbose t/pmbp-tls-4/*.t
endif
ifeq "$(TARGET)" "tls-5"
$(PROVE) --verbose t/pmbp-tls-5/*.t
endif
ifeq "$(TARGET)" "mysqld"
$(PROVE) --verbose t/pmbp-mysqld/*.t
endif
ifeq "$(TARGET)" "docker"
$(PROVE) --verbose t/pmbp-docker/*.t
endif
ifeq "$(TARGET)" "gnuplot"
$(PROVE) --verbose t/pmbp-gnuplot/*.t
endif
## License: Public Domain.