X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=stepmake%2Fstepmake%2Ftexinfo-rules.make;h=024cf869e0924f3d678cf4ba7ff58be04e3880a3;hb=2d54fb4a885cb851718a7bd5c800f01d6337895f;hp=b02bb9cbc0f6febe79011eac98d6073a35f161fe;hpb=1aec18d1bbea6391265d1ed6bf914bad83de94de;p=lilypond.git diff --git a/stepmake/stepmake/texinfo-rules.make b/stepmake/stepmake/texinfo-rules.make index b02bb9cbc0..024cf869e0 100644 --- a/stepmake/stepmake/texinfo-rules.make +++ b/stepmake/stepmake/texinfo-rules.make @@ -8,27 +8,20 @@ # symlinks, see replace_symlinks_urls in # buildscripts/add_html_footer.py. -ifneq ($(INFO_IMAGES_DIR),'') - # make dereferences symlinks, and $(INFO_IMAGES_DIR) is a symlink # to $(outdir), so we can't use directly $(INFO_IMAGES_DIR) as a # prerequisite, otherwise %.info are always outdated (because older # than $(outdir), hence this .dep file -$(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] endif + touch $@ # Settings for texi2html: ifneq ($(ISOLANG),)