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

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

esman1dir	= $(subst $(mandir),$(mandir)/es,$(man1dir))
esman5dir	= $(subst $(mandir),$(mandir)/es,$(man5dir))
esman8dir	= $(subst $(mandir),$(mandir)/es,$(man8dir))

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

all: 

clean: 

distclean: clean 
	$(RM) Makefile

install: install-doc

install-program:

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

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

