25
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
1 |
include ../Makefile.common
|
2 |
DESTDIR = |
|
3 |
||
4 |
define \n
|
|
10.9.5
by James Vega, James Vega, Benjamin Drung, David Prévot
[ James Vega ] |
5 |
|
6 |
||
7 |
endef
|
|
8 |
||
9 |
VERSION_FILE = ../version |
|
25
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
10 |
VERSION := $(shell cat $(VERSION_FILE)) |
11 |
||
12 |
PL_FILES := $(wildcard *.pl) |
|
13 |
SH_FILES = $(wildcard *.sh) |
|
14 |
LIBS = libvfork.so.0 |
|
15 |
CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) |
|
10.9.14
by Benjamin Drung, David Prévot, Ron Lee, Christoph Berg, Bernhard R. Link, James McCoy, Benjamin Drung
[ David Prévot ] |
16 |
CFLAGS := $(shell dpkg-buildflags --get CFLAGS) |
17 |
CFLAGS += -std=c99 |
|
18 |
LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) |
|
19 |
CWRAPPERS = debpkg-wrapper |
|
25
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
20 |
SCRIPTS = $(patsubst %.pl,%,$(PL_FILES)) $(patsubst %.sh,%,$(SH_FILES)) |
41
by Steve Kowalik
* Remove requestsync, and its manual page. (They have moved to |
21 |
COMPL_FILES := $(wildcard *.bash_completion) |
52
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
22 |
COMPLETION = $(patsubst %.bash_completion,devscripts.%,$(COMPL_FILES)) |
23 |
||
25
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
24 |
GEN_MAN1S += devscripts.1 |
10.7.7
by James Vega, James Vega, David Prévot, Patrick Schoenfeld
[ James Vega ] |
25 |
|
10.2.3
by Adam D. Barratt, Adam D. Barratt, James Vega, Christoph Berg
[ Adam D. Barratt ] |
26 |
BINDIR = /usr/bin |
25
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
27 |
LIBDIR = /usr/lib/devscripts |
28 |
BIN_LIBDIR = /usr/lib/devscripts |
|
29 |
||
30 |
all: $(SCRIPTS) $(GEN_MAN1S) $(LIBS) $(CWRAPPERS) $(COMPLETION) |
|
52
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
31 |
|
25
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
32 |
$(VERSION_FILE): |
10.9.1
by James Vega, James Vega, Christoph Berg, Raphael Geissert
[ James Vega ] |
33 |
$(MAKE) -C .. version |
10.9.6
by James Vega, David Prévot, Adam D. Barratt, James Vega, Christoph Berg, Stefano Rivera
[ David Prévot ] |
34 |
|
10.9.1
by James Vega, James Vega, Christoph Berg, Raphael Geissert
[ James Vega ] |
35 |
%: %.sh |
25
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
36 |
|
37 |
debchange: debchange.pl $(VERSION_FILE) |
|
10.9.15
by James McCoy, Benjamin Drung, James McCoy
[ Benjamin Drung ] |
38 |
cp $< $@
|
39 |
sed -i "s/###VERSION###/$(VERSION)/" $@ |
|
40 |
ifeq ($(shell dpkg-vendor --query Vendor),Ubuntu)
|
|
41 |
# On Ubuntu always default to targeting the release that it's built on,
|
|
10.10.1
by James McCoy, Julian Gilbey, James McCoy, Christoph Berg, Raphael Geissert, Arno Töll, David Prévot, Translation updates
[ Julian Gilbey ] |
42 |
# not the current devel release, since its primary use on stable releases
|
10.9.15
by James McCoy, Benjamin Drung, James McCoy
[ Benjamin Drung ] |
43 |
# will be for preparing PPA uploads.
|
44 |
sed -i 's/get_ubuntu_devel_distro()/"$(shell lsb_release -cs)"/' $@ |
|
45 |
endif
|
|
46 |
perl -I.. -c $@
|
|
47 |
||
48 |
%.tmp: %.sh $(VERSION_FILE) |
|
25
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
49 |
sed -e "s/###VERSION###/$(VERSION)/" $< > $@ |
50 |
bash -n $@
|
|
51 |
%.tmp: %.pl $(VERSION_FILE) |
|
52 |
sed -e "s/###VERSION###/$(VERSION)/" $< > $@ |
|
53 |
perl -I.. -c $@
|
|
54 |
%: %.tmp |
|
55 |
cp $< $@
|
|
56 |
chmod +x $@
|
|
57 |
||
58 |
%.1: %.pl |
|
59 |
podchecker $< |
|
10.2.1
by Adam D. Barratt
* checkbashisms: Only flag "local x y" and "local foo=bar" when --posix is |
60 |
pod2man --utf8 --center=" " --release="Debian Utilities" $< > $@ |
10.7.7
by James Vega, James Vega, David Prévot, Patrick Schoenfeld
[ James Vega ] |
61 |
%.1: %.dbk |
25
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
62 |
xsltproc --nonet -o $@ \ |
63 |
/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl $< |
|
64 |
||
65 |
# There is a slight chance this gets called twice, once here from here and once
|
|
10.9.1
by James Vega, James Vega, Christoph Berg, Raphael Geissert
[ James Vega ] |
66 |
# from ../po4a/Makefile. Treat files with care.
|
67 |
PID := $(shell echo $$$$-$$PPID) |
|
68 |
devscripts.1: devscripts.1.in |
|
10.1.2
by Adam D. Barratt, Adam D. Barratt, Patrick Schoenfeld
The "Debconf fish!" upload |
69 |
cat $< > $@.$(PID) |
10.9.6
by James Vega, David Prévot, Adam D. Barratt, James Vega, Christoph Berg, Stefano Rivera
[ David Prévot ] |
70 |
perl ../debian/genmanpage.pl >> $@.$(PID) |
10.9.1
by James Vega, James Vega, Christoph Berg, Raphael Geissert
[ James Vega ] |
71 |
mv $@.$(PID) $@ |
72 |
||
10.1.2
by Adam D. Barratt, Adam D. Barratt, Patrick Schoenfeld
The "Debconf fish!" upload |
73 |
devscripts.%: %.bash_completion |
52
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
74 |
cp $< $@
|
75 |
||
76 |
libvfork.o: libvfork.c |
|
25
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
77 |
$(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -D_REENTRANT -c $< |
10.9.14
by Benjamin Drung, David Prévot, Ron Lee, Christoph Berg, Bernhard R. Link, James McCoy, Benjamin Drung
[ David Prévot ] |
78 |
libvfork.so.0: libvfork.o |
25
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
79 |
$(CC) $(LDFLAGS) -shared $< -lc -Wl,-soname -Wl,libvfork.so.0 -o $@ |
10.9.14
by Benjamin Drung, David Prévot, Ron Lee, Christoph Berg, Bernhard R. Link, James McCoy, Benjamin Drung
[ David Prévot ] |
80 |
|
25
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
81 |
clean: |
82 |
python3 setup.py clean -a |
|
129
by Matthias Klose
* Convert python scripts to python3. Closes: #680313. |
83 |
find -name '*.pyc' -delete
|
10.9.5
by James Vega, James Vega, Benjamin Drung, David Prévot
[ James Vega ] |
84 |
find -name __pycache__ -delete |
10.9.23
by Benjamin Drung, Laurent Rineau, Benjamin Drung, James McCoy, Dmitrijs Ledkovs, Markus Wanner
[ Laurent Rineau ] |
85 |
rm -rf devscripts.egg-info |
10.9.5
by James Vega, James Vega, Benjamin Drung, David Prévot
[ James Vega ] |
86 |
rm -f $(SCRIPTS) $(patsubst %,%.tmp,$(SCRIPTS)) \ |
25
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
87 |
$(GEN_MAN1S) $(SCRIPT_LIBS) $(CWRAPPERS) \ |
88 |
libvfork.o libvfork.so.0 $(COMPLETION) |
|
52
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
89 |
|
25
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
90 |
test: |
10.9.5
by James Vega, James Vega, Benjamin Drung, David Prévot
[ James Vega ] |
91 |
$(foreach python,$(shell py3versions -r ../debian/control),$(python) setup.py test$(\n)) |
129
by Matthias Klose
* Convert python scripts to python3. Closes: #680313. |
92 |
|
10.9.5
by James Vega, James Vega, Benjamin Drung, David Prévot
[ James Vega ] |
93 |
install: all |
25
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
94 |
python3 setup.py install --root="$(DESTDIR)" --no-compile --install-layout=deb |
129
by Matthias Klose
* Convert python scripts to python3. Closes: #680313. |
95 |
install -dD $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) |
10.9.5
by James Vega, James Vega, Benjamin Drung, David Prévot
[ James Vega ] |
96 |
cp $(SCRIPTS) $(DESTDIR)$(BINDIR) |
25
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
97 |
ln -sf edit-patch $(DESTDIR)$(BINDIR)/add-patch |
10.9.5
by James Vega, James Vega, Benjamin Drung, David Prévot
[ James Vega ] |
98 |
cp $(LIBS) $(DESTDIR)$(LIBDIR) |
25
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
99 |
install -dD $(DESTDIR)/etc/bash_completion.d |
10.9.5
by James Vega, James Vega, Benjamin Drung, David Prévot
[ James Vega ] |
100 |
cp $(COMPLETION) $(DESTDIR)/etc/bash_completion.d |
52
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
101 |
# Special treatment for debpkg
|
25
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
102 |
install -dD $(DESTDIR)$(PERLMOD_DIR) |
10.9.5
by James Vega, James Vega, Benjamin Drung, David Prévot
[ James Vega ] |
103 |
mv $(DESTDIR)$(BINDIR)/debpkg $(DESTDIR)$(PERLMOD_DIR) |
25
by Colin Watson
* Resynchronise with Debian. Remaining changes: |
104 |
cp debpkg-wrapper $(DESTDIR)$(BINDIR)/debpkg |
105 |
||
106 |
.PHONY: test |
|
10.9.5
by James Vega, James Vega, Benjamin Drung, David Prévot
[ James Vega ] |
107 |