In the Makefile, I have a rule to make a list of figures from LaTeX paper, output from a script to a perl expression, which increments the digits of the numbers $ f ++ and prepends Figure $ f: to the lines.
On the command line, it works fine:
% texdepend -format=1 -print=f MilestonesProject | perl -pe 'unless (/^#/){$f++; s/^/Figure $f: /}' > FIGLIST
creating FIGLIST:
# texdepend, v0.96 (Michael Friendly ( friendly@yorku.ca )) # commandline: texdepend -format=1 -print=f MilestonesProject # FIGS = Figure 1: fig/langren-google-overlay2.pdf Figure 2: fig/mileyears4.png Figure 3: fig/datavis-schema-3.pdf Figure 4: fig/datavis-timeline2.png ...
I cannot figure out how to make this work in the Makefile because the $ f element in the perl expression is interpreted by make, and I cannot figure out how to quote it or otherwise make it invisible.
My last attempt at the Makefile:
#
Can anyone help?
-Michael
source share