File: GNUmakefile

package info (click to toggle)
libdevice-cdio-perl 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,852 kB
  • sloc: ansic: 14,413; perl: 4,795; makefile: 19; sh: 3
file content (158 lines) | stat: -rw-r--r-- 3,965 bytes parent folder | download
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
#  Copyright (C) 2008, 2011, 2017 Rocky Bernstein <rocky@cpan.org>
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

#     PREREQ_PM => { Test::More=>q[0], version=>q[0], ExtUtils::PkgConfig=>q[1.03] }

# Note: remake (GNU make with debugging) has a --tasks option which
# will show important targets. In remake, to give a target a
# user-friendly description, one starts a comment line with #:

GIT2CL ?= git2cl

#: Build everything
all: ./Build
	perl ./Build --makefile_env_macros 1

#: Build program, e.g. compile C programs
build: ./Build
	perl ./Build --makefile_env_macros 1 build

#: Create Perl Build program via Module::Build
./Build: ./Build.PL
	perl ./Build.PL

#: create Makefile from Makefile.PL
Makefile: Makefile.PL
	perl Makefile.PL

#: create Makefile.PL from Build
Makefile: Build

#: Remove automatically generated files
clean:
	rm *.o *.so *.c || true
	perl ./Build --makefile_env_macros 1 clean

code:
	perl Build --makefile_env_macros 1 code

config_data:
	perl ./Build --makefile_env_macros 1 config_data

diff:
	perl ./Build --makefile_env_macros 1 diff

#: Create distribution tarball
dist:
	perl ./Build --makefile_env_macros 1 dist

distcheck: Makefile
	perl ./Build --makefile_env_macros 1 distcheck

distclean:
	perl ./Build --makefile_env_macros 1 distclean

distdir:
	perl ./Build --makefile_env_macros 1 distdir

distmeta:
	perl ./Build --makefile_env_macros 1 distmeta

distsign:
	perl ./Build --makefile_env_macros 1 distsign

disttest:
	perl ./Build --makefile_env_macros 1 disttest

#: Create documentation (in blib/libdoc) via perlpod
docs:
	perl ./Build --makefile_env_macros 1 docs

fakeinstall:
	perl ./Build --makefile_env_macros 1 fakeinstall

#: Show help
help:
	perl ./Build --makefile_env_macros 1 help

html:
	perl ./Build --makefile_env_macros 1 html

#: Install this puppy
install:
	perl ./Build --makefile_env_macros 1 install

#: Install other Perl packages that this package needs
installdeps:
	perl ./Build --makefile_env_macros 1 installdeps

#: Make a MANIFEST file
manifest:
	perl ./Build --makefile_env_macros 1 manifest

#: Generate manual pages
manpages:
	perl ./Build --makefile_env_macros 1 manpages

ppd:
	perl ./Build --makefile_env_macros 1 ppd

ppmdist:
	perl ./Build --makefile_env_macros 1 ppmdist

prereq_report:
	perl ./Build --makefile_env_macros 1 prereq_report

pure_install:
	perl ./Build --makefile_env_macros 1 pure_install

skipcheck :
	perl ./Build --makefile_env_macros 1 skipcheck

#: Same as "test". "check" is the usual autoconf name
check: test

#: Run all unit tests
test: Build
	perl ./Build --makefile_env_macros 1 test

#: 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