+dist-hook:
+ if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
+ for p in $$d/*.html; do \
+ cp $$p $(distdir); \
+ done
+
+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 -f index.html; then d=.; else d="$(srcdir)"; fi; \
+ for p in $$d/*.html; do \
+ $(INSTALL_DATA) $$p $(DESTDIR)$(docdir); \
+ done
+
+uninstall-hook:
+ rm -r $(DESTDIR)$(docdir)
+
+domfilter.png: domfilter.svg
+ unset DISPLAY; inkscape --export-png=$@ --export-width=600 $?
+
+domfilter.eps: domfilter.svg
+ unset DISPLAY; inkscape --export-eps=$@ --export-bbox-page $?
+
+doc-clean:
+ rm -f manref.xml *.html *.pdf *.[0-9] domfilter.png domfilter.eps
+
+.eps.pdf:
+ epstopdf -hires $?
+