-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.am
133 lines (109 loc) · 3.69 KB
/
Makefile.am
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
# Copyright (C) 2006-2008, 2012 Rocky Bernstein <rocky@gnu.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 2 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301 USA.
AUTOMAKE_OPTIONS = dist-bzip2
SUBDIRS = test $(emacs)
# Basename of debugger, used to form help doc, python script and script
# installed in an executable directory.
DEBUGGER = pydb
# The Python debugger script
python_debugger_script = $(DEBUGGER).py
pkgpython_PYTHON = \
$(DEBUGGER)/__init__.py \
$(DEBUGGER)/bytecode.py \
$(DEBUGGER)/complete.py \
$(DEBUGGER)/connection.py \
$(DEBUGGER)/disassemble.py \
$(DEBUGGER)/display.py \
$(DEBUGGER)/fns.py \
$(DEBUGGER)/gdb.py \
$(DEBUGGER)/info.py \
$(DEBUGGER)/pydb.py \
$(DEBUGGER)/pydbbdb.py \
$(DEBUGGER)/pydbcmd.py \
$(DEBUGGER)/set.py \
$(DEBUGGER)/show.py \
$(DEBUGGER)/sighandler.py \
$(DEBUGGER)/subcmd.py \
$(DEBUGGER)/threaddbg.py \
$(DEBUGGER)/threadinfo.py
pkgdata_DATA = $(DEBUGGER)/$(DEBUGGER).doc
pkgdatadir = $(pkgpythondir)
# Section 1 are general commands
EXT=1
man1_MANS = Doc/$(DEBUGGER).$(EXT)
# We in fact do install python_PYTHON, just not in the executable directory.
# Instead it's installed with other python programs. The noinst however
# forces a changed pydb.py to get created whenever pydb.py.in changes.
noinst_SCRIPTS = $(python_PYTHON)
bin_SCRIPTS = $(DEBUGGER)
PHONY = $(DEBUGGER) test
EXTRA_DIST = ChangeLog TODO THANKS \
Doc/Makefile.deps \
Doc/info/Makefile \
pydb/pydb.doc pydb/Makefile \
setup.py setup.py.in site-packages-path.py
MOSTLYCLEANFILES = $(man1_MANS)
clean-generic:
-rm $(top_builddir)/pydb/*.pyc
#
# For the executable, we make a symbolic link to the python program,
# and make sure it is executable. Configuration should have put the
# proper name to the python interpreter into the beginning.
#
install-binSCRIPTS: $(bin_SCRIPTS) install-data-am
if ! test -d "$(DESTDIR)$(bindir)"; then \
test -z "$(DESTDIR)$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"; \
fi
rm -f "$(DESTDIR)$(bindir)/$(bin_SCRIPTS)" || true;
chmod +x "$(DESTDIR)$(pkgpythondir)/$(python_debugger_script)"
$(LN_S) "$(DESTDIR)$(pkgpythondir)/$(python_debugger_script)" "$(DESTDIR)$(bindir)/$(bin_SCRIPTS)"
#: Run all tests
test: check
MAINTAINERCLEANFILES = ChangeLog
if MAINTAINER_MODE
SUBDIRS += Doc
EXTRA_DIST += \
Doc/Makefile.deps \
Doc/Makefile.in \
Doc/lib/Makefile \
Doc/lib/lib.tex \
Doc/lib/libpydb.tex \
Doc/paper-letter/lib.pdf \
Doc/paper-letter/lib.ps \
Doc/perl/SynopsisTable.pm \
Doc/perl/l2hinit.perl \
Doc/perl/manual.perl \
Doc/perl/python.perl \
Doc/texinputs/fncychap.sty \
Doc/texinputs/manual.cls \
Doc/texinputs/pypaper.sty \
Doc/texinputs/python.ist \
Doc/texinputs/underscore.sty \
Doc/tools/getversioninfo \
Doc/tools/indfix.py \
Doc/tools/mkhowto \
Doc/tools/node2label.pl \
Doc/tools/patchlevel.h \
Doc/tools/toc2bkm.py
PHONY += ChangeLog
#: Create a ChangeLog file from git logs
ChangeLog:
git log --pretty --numstat --summary | $(GIT2CL) > $@
ACLOCAL_AMFLAGS=-I .
endif
.PHONY: $(PHONY)
.OPTIONAL: $(DEBUGGER)