blob: 479c7b7d65b7d96755dd4a1150bba8be8f2807c6 (
plain)
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
|
## Process this file with automake to produce a Makefile.in
AUTOMAKE_OPTIONS = 1.1 foreign
## Directory definitions
pkglibdir = $(libdir)/@PACKAGE@
pkglocalstatedir = $(sharedstatedir)/@PACKAGE@
parsechangelogdir = $(pkglibdir)/parsechangelog
altssysconfdir = $(pkgsysconfdir)/alternatives
altslocalstatedir = $(pkglocalstatedir)/alternatives
# This should be $(pkgsysconfdir), but uses $(sysconfdir) for backwards compatibility.
altssysconfdir = $(sysconfdir)/alternatives
## Automake variables
bin_SCRIPTS = dpkg-name dpkg-source dpkg-genchanges dpkg-gencontrol \
dpkg-shlibdeps dpkg-buildpackage dpkg-parsechangelog \
dpkg-distaddfile 822-date dpkg-scanpackages \
dpkg-scansources dpkg-architecture
sbin_PROGRAMS = start-stop-daemon
start_stop_daemon_SOURCES = start-stop-daemon.c
sbin_SCRIPTS = update-rc.d update-alternatives \
install-info dpkg-divert cleanup-info
pkglib_SCRIPTS = controllib.pl
lisp_LISP = debian-changelog-mode.el
ELCFILES = debian-changelog-mode.elc
man_MANS = dpkg-name.1 dpkg-source.1 822-date.1 update-rc.d.8 \
start-stop-daemon.8 update-alternatives.8 \
install-info.8 dpkg-scanpackages.8 \
dpkg-scansources.8 dpkg-architecture.1
EXTRA_DIST = update-rc.d.pl \
dpkg-name.sh dpkg-source.pl dpkg-genchanges.pl \
dpkg-gencontrol.pl dpkg-shlibdeps.pl \
dpkg-buildpackage.sh dpkg-parsechangelog.pl \
dpkg-distaddfile.pl 822-date.pl dpkg-scanpackages.pl \
update-alternatives.pl install-info.pl dpkg-divert.pl \
cleanup-info.pl controllib.pl debian-changelog-mode.el \
cl-debian.pl dpkg-architecture.pl dpkg-scansources.pl \
$(man_MANS)
noinst_DATA = cl-debian
LSMANL = dpkg-gencontrol dpkg-genchanges dpkg-buildpackage \
dpkg-distaddfile dpkg-parsechangelog dpkg-shlibdeps
CLEANFILES = $(bin_SCRIPTS) $(sbin_SCRIPTS) $(noinst_DATA) $(ELCFILES)
MAINTAINERCLEANFILES = $(srcdir)/Makefile.in $(srcdir)/elisp-comp
## Rules
.PHONY: install-data-local uninstall-local
SUFFIXES = .pl .sh
%: %.pl
sed -e "s:^#![:space:]*/usr/bin/perl:#! $(perlpath):; \
s:\$$dpkglibdir[[:space:]]*=[[:space:]]*['\"][^'\"]*['\"]:\$$dpkglibdir=\"$(pkglibdir)\":; \
s:\$$version[[:space:]]*=[[:space:]]*['\"][^'\"]*[\"']:\$$version=\"$(VERSION)\":" \
< $< > $@.new
chmod 755 $@.new
mv $@.new $@
%: %.sh
sed -e "s:version=\"[^\"]*\":version=\"$(VERSION)\":" \
< $< > $@.new
chmod 755 $@.new
mv $@.new $@
install-data-local: cl-debian
$(mkinstalldirs) $(altslocalstatedir) $(altssysconfdir)
set -e; for f in $(LSMANL); do ln -sf $(mandir)/man1/dpkg-source.1 $(mandir)/man1/$$f.1; done
$(mkinstalldirs) $(parsechangelogdir)
$(INSTALL_PROGRAM) cl-debian $(parsechangelogdir)/debian
uninstall-local:
$(RM) $(parsechangelogdir)/debian
-[ -e $(parsechangelogdir) ] && rmdir $(parsechangelogdir)
set -e; for f in $(LSMANL); do $(RM) $(mandir)/man1/$$f.1; done
-[ -e $(altssysconfdir) ] && rmdir $(altssysconfdir)
-[ -e $(altslocalstatedir) ] && rmdir $(altslocalstatedir)
## End of file.
|