dpkg (1.3.1) experimental; urgency=LOW
[dpkg.git] / scripts / Makefile.in
blob4cc50235a4380461cd0d1d866c90c027a45e2ddf
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.
18 srcdir = @srcdir@
19 VPATH = @srcdir@
21 prefix = @prefix@
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
29 man1 = 1
30 man8 = 8
31 libdir = $(prefix)/lib
32 dpkglibdir = $(libdir)/dpkg
33 parsechangelogdir = $(dpkglibdir)/parsechangelog
34 elispdir = $(libdir)/emacs/site-lisp
35 etcdir= /etc
36 altsetcdir = $(etcdir)/alternatives
37 perlpath = @perlpath@
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 \
46 dpkg-scanpackages
47 SBIN = update-rc.d start-stop-daemon update-alternatives install-info \
48 dpkg-scanpackages dpkg-divert cleanup-info
49 LIB = controllib.pl
50 ELISP = dpkg-changelog-mode.el
51 CHGLGS= cl-dpkg
53 INSTALL = @INSTALL@
54 INSTALL_PROGRAM = @INSTALL_PROGRAM@
55 INSTALL_DATA = @INSTALL_DATA@
57 .SUFFIXES: .pl .sh .gzuue
59 .pl:
60 sed <$@.pl 's:^#!/usr/bin/perl:#!$(perlpath):; \
61 s:\$dpkglibdir= "\.":\$dpkglibdir= "$(dpkglibdir)":' \
62 | ../insert-version.pl >$@.new
63 chmod +x $@.new
64 mv $@.new $@
66 .sh:
67 sed <$@.sh 's:^dpkglibdir=/usr/lib/dpkg$$:dpkglibdir=$(dpkglibdir):' \
68 | ../insert-version.pl >$@.new
69 chmod +x $@.new
70 mv $@.new $@
72 .gzuue:
73 uudecode <$@.gzuue
74 gunzip <$@.gz >$@.new
75 test ! -x $@.gz || chmod +x $@.new
76 rm $@.gz
77 mv $@.new $@
79 all: $(EXC) $(SBIN) $(CHGLGS)
81 clean:
82 rm -f $(EXC) $(SBIN) core *.new
84 distclean: clean
85 rm -f Makefile *.orig *~ *.~* ./#*# i386elf-hello-world.gz
87 install: all
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-//'` ; \
97 done