-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.pmbp.example
48 lines (34 loc) · 1.14 KB
/
Makefile.pmbp.example
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
# -*- Makefile -*-
all:
WGET = wget
CURL = curl
GIT = git
updatenightly: local/bin/pmbp.pl
$(CURL) -s -S -L -f https://gist.githubusercontent.com/wakaba/34a71d3137a52abb562d/raw/gistfile1.txt | sh
$(GIT) add modules t_deps/modules
perl local/bin/pmbp.pl --update
$(GIT) add config
$(CURL) -sSLf https://raw.githubusercontent.com/wakaba/ciconfig/master/ciconfig | RUN_GIT=1 REMOVE_UNUSED=1 perl
## ------ Setup ------
deps: git-submodules pmbp-install
git-submodules:
$(GIT) submodule update --init
PMBP_OPTIONS=
local/bin/pmbp.pl:
mkdir -p local/bin
$(CURL) -s -S -L -f https://raw.githubusercontent.com/wakaba/perl-setupenv/master/bin/pmbp.pl > $@
pmbp-upgrade: local/bin/pmbp.pl
perl local/bin/pmbp.pl $(PMBP_OPTIONS) --update-pmbp-pl
pmbp-update: git-submodules pmbp-upgrade
perl local/bin/pmbp.pl $(PMBP_OPTIONS) --update
pmbp-install: pmbp-upgrade
perl local/bin/pmbp.pl $(PMBP_OPTIONS) --install \
--create-perl-command-shortcut @perl \
--create-perl-command-shortcut @prove
## ------ Tests ------
PROVE = ./prove
test: test-deps test-main
test-deps: deps
test-main:
$(PROVE) t/*.t
## License: Public Domain.