VPATH		= @srcdir@
srcdir		= @srcdir@
top_srcdir	= @top_srcdir@

default: all
include ../../Makefile.conf

svman1dir	= $(subst $(mandir),$(mandir)/sv,$(man1dir))
svman5dir	= $(subst $(mandir),$(mandir)/sv,$(man5dir))
svman8dir	= $(subst $(mandir),$(mandir)/sv,$(man8dir))

MAN1PAGES	= 822-date.1 dpkg-deb.1 md5sum.1
MAN5PAGES	= deb.5 deb-control.5 deb-old.5 dpkg.cfg.5 dselect.cfg.5
MAN8PAGES	= dpkg.8 dpkg-query.8 dpkg-split.8 dselect.8 start-stop-daemon.8

all: 

clean: 

distclean: clean 
	$(RM) Makefile

install: install-doc

install-program:

install-doc:
	$(mkinstalldirs) $(DESTDIR)$(svman1dir) 
	set -e ; for i in $(MAN1PAGES) ; do \
	    if test -f $$i ; then d= ; else d="$(srcdir)/" ; fi ; \
	    $(INSTALL_DATA) $$d$$i $(DESTDIR)$(svman1dir) ; \
	done
	$(mkinstalldirs) $(DESTDIR)$(svman5dir) 
	set -e ; for i in $(MAN5PAGES) ; do \
	    if test -f $$i ; then d= ; else d="$(srcdir)/" ; fi ; \
	    $(INSTALL_DATA) $$d$$i $(DESTDIR)$(svman5dir) ; \
	done
	$(mkinstalldirs) $(DESTDIR)$(svman8dir) 
	set -e ; for i in $(MAN8PAGES) ; do \
	    if test -f $$i ; then d= ; else d="$(srcdir)/" ; fi ; \
	    $(INSTALL_DATA) $$d$$i $(DESTDIR)$(svman8dir) ; \
	done

.PHONY: all clean distclean install install-doc install-program

