X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2FMakefile.am;h=62a17d9c3db4b14e23a4f4f830f6bc5a4f1bfb54;hb=dcd1514bd18b7c8623f2f2271f36d11948cf3821;hp=e79db22316c8260b2fdef06a7c2687fbdd149c2e;hpb=7b25277add2aae5caabee02213911aeeb65030c8;p=idzebra-moved-to-github.git diff --git a/doc/Makefile.am b/doc/Makefile.am index e79db22..62a17d9 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,4 +1,4 @@ -## $Id: Makefile.am,v 1.60 2006-09-05 12:01:31 adam Exp $ +## $Id: Makefile.am,v 1.62 2006-10-11 09:39:44 adam Exp $ docdir=$(datadir)/doc/$(PACKAGE)$(PACKAGE_SUFFIX) SUBDIRS = common @@ -91,7 +91,7 @@ clean-data-hook: rm -f [0-9]* *.bak dist-hook: - if test -d index.html; then d=.; else d="$(srcdir)"; fi; \ + if test -f index.html; then d=.; else d="$(srcdir)"; fi; \ for p in $$d/*.html; do \ cp $$p $(distdir); \ done @@ -100,7 +100,11 @@ install-data-hook: cd $(DESTDIR)$(man1dir) && ln -sf zebraidx$(PACKAGE_SUFFIX).1 zebraidx.1 cd $(DESTDIR)$(man8dir) && ln -sf zebrasrv$(PACKAGE_SUFFIX).8 zebrasrv.8 cd $(DESTDIR)$(man1dir) && ln -sf idzebra-config$(PACKAGE_SUFFIX).1 idzebra-config.1 - if test -d index.html; then d=.; else d="$(srcdir)"; fi; \ + if test -f index.html; then d=.; else d="$(srcdir)"; fi; \ for p in $$d/*.html; do \ $(docDATA_INSTALL) $$p $(DESTDIR)/$(docdir); \ done + +uninstall-hook: + rm -r $(DESTDIR)/$(docdir) +