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

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

jaman1dir	= $(subst $(mandir),$(mandir)/ja,$(man1dir))
jaman5dir	= $(subst $(mandir),$(mandir)/ja,$(man5dir))
jaman8dir	= $(subst $(mandir),$(mandir)/ja,$(man8dir))

MAN1PAGES	= dpkg-deb.1 md5sum.1 822-date.1 dpkg-name.1 \
		  dpkg-checkbuilddeps.1 dpkg-architecture.1 dpkg-source.1 \
		  dpkg-scanpackages.1 dpkg-scansources.1
MAN5PAGES	= deb-old.5 deb.5 deb-control.5
MAN8PAGES	= dpkg.8 dselect.8 install-info.8 start-stop-daemon.8 \
		  update-alternatives.8 cleanup-info.8 dpkg-divert.8 \
		  dpkg-query.8

all: 

clean: 

distclean: clean 
	$(RM) Makefile

install: install-doc

install-program:

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

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

