-$(outdir)/%.info-images-dir.dep: $(outdir)/%.texi
- rm -f $*
- ln -s $(outdir) $*
- mkdir -p $(outdir)/$*
- find $(outdir)/$*/ -name '*'.png | xargs rm -f
- (cd $(outdir)/$*/ ; ln -sf ../*.png . )
- touch $@
-
-else
-
-$(outdir)/.info-images-dir.dep:
- touch $@
-
+$(outdir)/$(INFO_IMAGES_DIR).info-images-dir.dep: $(INFO_DOCS:%=$(outdir)/%.texi)
+ifneq ($(INFO_IMAGES_DIR),)
+ rm -f $(INFO_IMAGES_DIR)
+ ln -s $(outdir) $(INFO_IMAGES_DIR)
+ mkdir -p $(outdir)/$(INFO_IMAGES_DIR)
+ rm -f $(outdir)/$(INFO_IMAGES_DIR)/[a-f0-9][a-f0-9]
+ cd $(outdir)/$(INFO_IMAGES_DIR) && $(PYTHON) $(top-src-dir)/buildscripts/mass-link.py symbolic .. . [a-f0-9][a-f0-9]