X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=stepmake%2Fstepmake%2Ftexinfo-rules.make;h=253c3d6bef05fdd0e559d2281b55f548ffa059f9;hb=69f0ec479a6ade46d0a227755bb02562112c6743;hp=5b53322e9258f6253e402d6e6d86df5f75b4f079;hpb=a22b7ddea794271790a771b3f4bca86547071038;p=lilypond.git diff --git a/stepmake/stepmake/texinfo-rules.make b/stepmake/stepmake/texinfo-rules.make index 5b53322e92..c07a86e6c7 100644 --- a/stepmake/stepmake/texinfo-rules.make +++ b/stepmake/stepmake/texinfo-rules.make @@ -1,31 +1,69 @@ -# Texinfo_rules.make .SUFFIXES: .html .info .texi .texinfo -$(outdir)/%.info: $(outdir)/%.texi - -$(MAKEINFO) --force -I $(outdir) --output=$@ $< +# "makeinfo --info" MUST be able to read PNGs from CWD for info images +# to work, hence $(INFO_IMAGES_DIR) -> $(outdir)/ symlink. +# $(outdir)/$(INFO_IMAGES_DIR)/*.png symlinks are only needed to view +# out-www/*.info with Emacs -- HTML docs no longer need these +# symlinks, see replace_symlinks_urls in +# python/auxiliar/postprocess_html.py. -$(outdir)/%.html: $(outdir)/%.texi - -$(MAKEINFO) --force -I $(outdir) --output=$@ --html --no-split --no-headers $< -# we want footers even if website builds (or is built) partly - $(footify) $@ +# 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 -# Generic rule not possible? -$(outdir)/%/%.html: $(outdir)/%.texi - -$(MAKEINFO) --force --output=$@ --html $< -# we want footers even if website builds (or is built) partly - $(deep-footify) $(sort $(wildcard $(outdir)/$(*F)/*.html)) +$(outdir)/$(INFO_IMAGES_DIR).info-images-dir-dep: $(OUT_TEXI_FILES) +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) && $(buildscript-dir)/mass-link symbolic .. . [a-f0-9][a-f0-9] +endif + touch $@ -$(outdir)/%.dvi: $(outdir)/%.texi - cd $(outdir); texi2dvi --batch $( $@ + echo $(TOPLEVEL_VERSION)>> $@ + echo '@end macro'>> $@ +.SECONDARY: $(outdir)/version.itexi $(outdir)/version.texi \ + $(outdir)/$(INFO_IMAGES_DIR).info-images-dir-dep \ + $(outdir)/*.texi