* add new generic variable abs-src-dir, which makes the absolute
current source directory available even in builds without --srcdir;
* use abs-src-dir instead of hard-coded directory in metafont rules;
* add -I$(abs-src-dir) in texi2pdf call;
* fix Contributors' Guide makefile.
local-WWW-1: $(PDF_FILES)
local-WWW-2: $(HTML_FILES) $(OUT_HTML_FILES)
+
+$(PDF_FILES) $(HTML_FILES): $(ITEXI_FILES)
VPATH = $(src-dir)
endif
+abs-src-dir = $(top-src-dir)$(tree-dir)
+
.UNEXPORT: build-dir src-dir tree-dir
src-wildcard = $(subst $(src-dir)/,,$(wildcard $(src-dir)/$(1)))
TMP=`mktemp -d $(outdir)/pfbtemp.XXXXXXXXX` \
&& ( cd $$TMP \
&& ln -s ../mf2pt1.mem . \
- && MFINPUTS=$(top-src-dir)/mf:..:: $(buildscript-dir)/mf2pt1 $(MF2PT1_OPTIONS) $< $(METAFONT_QUIET)) \
+ && MFINPUTS=$(abs-src-dir):..:: $(buildscript-dir)/mf2pt1 $(MF2PT1_OPTIONS) $< $(METAFONT_QUIET)) \
&& mv $$TMP/*pfb $(outdir); \
rm -rf $$TMP
$(call GENERATE_OMF,ps.gz)
$(outdir)/%.pdf: $(outdir)/%.texi $(outdir)/version.itexi
- cd $(outdir); texi2pdf $(TEXI2PDF_FLAGS) --batch $(TEXINFO_PAPERSIZE_OPTION) $(<F)
-
+ cd $(outdir); texi2pdf $(TEXI2PDF_FLAGS) -I $(abs-src-dir) --batch $(TEXINFO_PAPERSIZE_OPTION) $(<F)
$(outdir)/%.txt: $(outdir)/%.texi $(outdir)/version.itexi
$(MAKEINFO) -I$(src-dir) -I$(outdir) --no-split --no-headers --output $@ $<