David Kastrup <[email protected]> writes: > Graham Percival <[email protected]> writes: > >> 229e0282758104ae7fa2efe663d2a76da5a0f96d > > This one has > > +$(OUT_TXT_FILES): $(outdir)/%.txt: $(top-src-dir)/% > + cp -f $< $@ > + > +$(OUT_TXT_FILES:%.txt=%.html): $(outdir)/%.html: $(outdir)/%.txt > + $(PYTHON) $(step-bindir)/text2html.py $< > > I don't understand those dependency lines with two colons in them. And > I find nothing in the GNU Make documentation that would make them appear > meaningful to me. > > Maybe I don't know where to look.
You want to look in the "Static Usage" node under "Rules". It automatically generates dependencies based on filename patterns. In the first rule above, if "$(outdir)/foo.txt" were a member of OUT_TXT_FILES, it would depend upon "$(top-src-dir)/foo". The second rule then makes "$(outdir)/foo.html" depend upon "$(outdir)/foo.txt". (As a side-note, this was reasonably difficult to find. I ended up looking at the make sources to find out that this was called a "static pattern rule.") -- Michael Welsh Duggan ([email protected]) _______________________________________________ lilypond-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-devel
