# 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
infodir = $(prefix)/info
mandir = $(prefix)/man
man5dir = $(mandir)/man5
man5 = 5

DIST = Makefile.in $(SRC) $(MAN)

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

MAKEINFO = makeinfo
TEXI2DVI = texi2dvi

all:

database-structure.ps:	database-structure.fig
		fig2dev -L ps -c -l _ -P <database-structure.fig >ps
		mv ps database-structure.ps

database-structure.monops: database-structure.ps
		perl -pe 's:^/(col[0-7]) \{[01 ]*1[01 ]* setrgbcolor\}\
 bind def$$:/$$1 {} bind def:' database-structure.ps >ps
		mv ps database-structure.monops

dpkg.dvi:
		$(TEXI2DVI) $(srcdir)/dpkg.texi

dpkg.info:
		$(MAKEINFO) $(srcdir)/dpkg.texi

clean:
		rm -f database-structure.ps database-structure.monops ps
		rm -f dpkg.aux dpkg.cp dpkg.dvi dpkg.fn dpkg.ky
		rm -f dpkg.log dpkg.pg dpkg.toc dpkg.tp dpkg.vr

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

install:
		$(INSTALL_DATA) deb.5 $(man5dir)/deb.$(man5)
		$(INSTALL_DATA) deb-control.5 $(man5dir)/deb-control.$(man5)
