1 # Copyright (C) 1994 Ian Murdock <imurdock@debian.org>
2 # Copyright (C) 1994,1995,1996 Ian Jackson <ijackson@nyx.cs.du.edu>
4 # This is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as
6 # published by the Free Software Foundation; either version 2,
7 # or (at your option) any later version.
9 # This is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public
15 # License along with dpkg; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 bindir = $(prefix)/bin
23 sbindir
= $(prefix)/sbin
24 datadir = /var
/lib
/dpkg
25 altsdatadir
= $(datadir)/alternatives
26 mandir = $(prefix)/man
27 man1dir = $(mandir)/man1
28 man8dir = $(mandir)/man8
31 libdir = $(prefix)/lib
32 dpkglibdir
= $(libdir)/dpkg
33 parsechangelogdir
= $(dpkglibdir
)/parsechangelog
34 elispdir
= $(libdir)/emacs
/site-lisp
36 altsetcdir
= $(etcdir
)/alternatives
39 MAN1
= dpkg-name dpkg-source
40 LSMAN
= dpkg-source.
$(man1
)
41 LSMANL
= dpkg-gencontrol dpkg-genchanges dpkg-buildpackage \
42 dpkg-distaddfile dpkg-parsechangelog
43 EXC
= dpkg-name dpkg-source dpkg-genchanges dpkg-gencontrol \
44 dpkg-buildpackage dpkg-parsechangelog dpkg-distaddfile
45 MAN8
= update-rc.d start-stop-daemon update-alternatives install-info \
47 SBIN
= update-rc.d start-stop-daemon update-alternatives install-info \
48 dpkg-scanpackages dpkg-divert cleanup-info
50 ELISP
= dpkg-changelog-mode.el
54 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
55 INSTALL_DATA
= @INSTALL_DATA@
57 .SUFFIXES
: .pl .sh .gzuue
60 sed
<$@.pl
's:^#!/usr/bin/perl:#!$(perlpath):; \
61 s:\$dpkglibdir= "\.":\$dpkglibdir= "$(dpkglibdir)":' \
62 | ..
/insert-version.pl
>$@.new
67 sed
<$@.sh
's:^dpkglibdir=/usr/lib/dpkg$$:dpkglibdir=$(dpkglibdir):' \
68 | ..
/insert-version.pl
>$@.new
75 test ! -x
$@.gz || chmod
+x
$@.new
79 all: $(EXC
) $(SBIN
) $(CHGLGS
)
82 rm -f
$(EXC
) $(SBIN
) core
*.new
85 rm -f Makefile
*.orig
*~
*.~
* .
/#*# i386elf-hello-world.gz
88 for f in
$(EXC
) ; do
$(INSTALL_PROGRAM
) $$f $(bindir)/$$f ; done
89 for f in
$(MAN1
) ; do
$(INSTALL_DATA
) $$f.1 $(man1dir)/$$f.
$(man1
) ; done
90 for f in
$(LSMANL
) ; do ln
-s
$(LSMAN
) $(man1dir)/$$f.
$(man1
) ; done
91 for f in
$(SBIN
) ; do
$(INSTALL_PROGRAM
) $$f $(sbindir
)/$$f ; done
92 for f in
$(MAN8
) ; do
$(INSTALL_DATA
) $$f.8 $(man8dir)/$$f.
$(man8
) ; done
93 for f in
$(LIB
) ; do
$(INSTALL_DATA
) $$f $(dpkglibdir
)/$$f ; done
94 for f in
$(ELISP
) ; do
$(INSTALL_DATA
) $$f $(elispdir
)/$$f ; done
95 for f in
$(CHGLGS
) ; do
$(INSTALL_PROGRAM
) $$f \
96 $(dpkglibdir
)/parsechangelog
/`echo $$f | sed -e 's/^cl-//'` ; \