# Generated automatically from Makefile.in by configure.
# Copyright (C) 1994 Ian Murdock <imurdock@debian.org>
# Copyright (C) 1994,1995 Ian Jackson <ijackson@nyx.cs.du.edu>
#
#   This 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,
#   or (at your option) any later version.
#
#   This 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 dpkg; if not, write to the Free Software
#   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

srcdir = .

prefix = /usr
bindir = $(prefix)/bin
sbindir = $(prefix)/sbin
datadir = /var/lib/dpkg
altsdatadir = $(datadir)/alternatives
mandir = $(prefix)/man
man8dir = $(mandir)/man8
man8 = 8
# libdir = $(prefix)/lib
# perllib = $(libdir)/dpkg-lib.pl
etcdir= /etc
altsetcdir = $(etcdir)/alternatives

EXC  = install-info
MAN8 = install-info
SBIN = update-rc.d start-stop-daemon update-alternatives

INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644

.SUFFIXES:	.pl

.pl:
		../insert-version.pl <$@.pl >$@.new
		chmod +x $@.new
		mv $@.new $@

.sh:
		cp $@.sh $@.new
		mv $@.new $@

all:		$(EXC) $(SBIN)

clean:
		rm -f $(EXC) core

distclean:	clean
		rm -f Makefile *.orig *~ *.~* ./#*#

install:	all
		for f in $(EXC) ; do $(INSTALL_PROGRAM) $$f $(bindir)/$$f ; done
		for f in $(SBIN) ; do $(INSTALL_PROGRAM) $$f $(sbindir)/$$f ; done
		for f in $(MAN8) ; do $(INSTALL_DATA) $$f.8 $(man8dir)/$$f.$(man8) ; done
