-
Notifications
You must be signed in to change notification settings - Fork 4
/
GNUmakefile
138 lines (99 loc) · 3.13 KB
/
GNUmakefile
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
132
133
134
135
136
137
138
GIT2CL ?= git2cl
PERL ?= perl
BASH ?= bash
#: Build everything
all: Build
$(PERL) Build --makefile_env_macros 1
#: make Build program
Build:
$(PERL) Build.PL || $(PERL) Makefile.PL
#: Build program, e.g. copy to blib
build: Build
$(PERL) Build --makefile_env_macros 1 build
#: Remove automatically generated files
clean: Build
$(PERL) Build --makefile_env_macros 1 clean || /bin/true
@rm bin/*.check \
lib/Bio/BPWrapper*.check \
lib/Bio/BPWrapper/*.check || /bin/true
#: Create a docker image
docker:
docker build -t rockyb/bpwrapper .
code: Build
$(PERL) Build --makefile_env_macros 1 code
config_data: BUild
$(PERL) Build --makefile_env_macros 1 config_data
diff: Build
$(PERL) Build --makefile_env_macros 1 diff
#: Create distribution tarball
dist: Build
$(PERL) Build --makefile_env_macros 1 dist
distcheck: Build clean
$(PERL) Build --makefile_env_macros 1 distcheck
distclean: Build
$(PERL) Build --makefile_env_macros 1 distclean
distdir: Build
$(PERL) Build --makefile_env_macros 1 distdir
distmeta: Build
$(PERL) Build --makefile_env_macros 1 distmeta
distsign: Build
$(PERL) Build --makefile_env_macros 1 distsign
disttest: Build
$(PERL) Build --makefile_env_macros 1 disttest
#: Create documentation (in blib/libdoc) via perlpod
docs: Build
$(PERL) Build --makefile_env_macros 1 docs
fakeinstall: Build
$(PERL) Build --makefile_env_macros 1 fakeinstall
#: Show help
help: Build
$(PERL) Build --makefile_env_macros 1 help
html: Build
$(PERL) Build --makefile_env_macros 1 html
#: Install this puppy
install: Build
$(PERL) Build --makefile_env_macros 1 install
#: Install other Perl packages that this package needs
installdeps: Build
$(PERL) Build --makefile_env_macros 1 installdeps
#: Make a MANIFEST file
manifest: Build
$(PERL) Build --makefile_env_macros 1 manifest
#: Generate manual pages
manpages: Build
$(PERL) Build --makefile_env_macros 1 manpages
ppd: Build
$(PERL) Build --makefile_env_macros 1 ppd
ppmdist: Build
$(PERL) Build --makefile_env_macros 1 ppmdist
prereq_report: Build
$(PERL) Build --makefile_env_macros 1 prereq_report
pure_install: Build
$(PERL) Build --makefile_env_macros 1 pure_install
skipcheck: Build
$(PERL) Build --makefile_env_macros 1 skipcheck
#: Same as "test". "check" is the usual autoconf name
test check: test-t
#: Run all Test::More tests
test-t: Build
$(PERL) Build --makefile_env_macros 1 test && $(MAKE) clean
#: Check code coverage
testcover:
$(PERL) Build --makefile_env_macros 1 testcover
#: Remove change log: ChangeLog
rmChangeLog:
rm ChangeLog || true
#: Create a ChangeLog from git via git log and git2cl
ChangeLog: rmChangeLog
git log --pretty --numstat --summary | $(GIT2CL) >$@
#: Calling perl debugger (perldb) on each test
testdb:
$(PERL) Build --makefile_env_macros 1 testdb
testpod:
$(PERL) Build --makefile_env_macros 1 testpod
testpodcoverage:
$(PERL) Build --makefile_env_macros 1 testpodcoverage
versioninstall:
$(PERL) Build --makefile_env_macros 1 versioninstall
.EXPORT: INC PREFIX DESTDIR VERBINST INSTALLDIRS TEST_VERBOSE LIB UNINST INSTALL_BASE POLLUTE
.PHONY: all realclean build clean check test testcover testdb testpod testpodcoverage