From: John Mandereau Date: Mon, 14 Apr 2008 13:28:34 +0000 (+0200) Subject: Rework info-images-dir.dep stuff X-Git-Tag: release/2.11.45-1~82^2~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=04a39fedc38b7b57043b82b8b5770909b9584a4e;p=lilypond.git Rework info-images-dir.dep stuff make failed at finding a rule for Documentation/user/out/lilypond.info when doing a clean build. Make warnings come back with this new revision, but I was not able to get rid of them. --- diff --git a/stepmake/stepmake/texinfo-rules.make b/stepmake/stepmake/texinfo-rules.make index d346c04fe8..23213f8d94 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 $@ $(outdir)/%.info: $(outdir)/%.texi $(outdir)/$(INFO_IMAGES_DIR).info-images-dir.dep $(MAKEINFO) -I$(outdir) --output=$@ $<