[linux-elitists] Fun* with inotify and make

Don Marti dmarti at zgp.org
Mon Jul 29 10:16:51 PDT 2013


begin Teh Entar-Nick quotation of Mon, Jul 29, 2013 at 02:09:37PM +0000:
> Don Marti:
> > begin Teh Entar-Nick quotation of Mon, Jul 29, 2013 at 11:04:52AM +0000:
> > >     %.epub: %.md %_cover.jpeg metadata.xml
> > >             pandoc -S --epub-metadata=metadata.xml --epub-cover-image=$*_cover.jpeg -o $@ $<
> > 
> > Strange.  I tried adding a "metadata.xml" prerequisite and got...
> > 
> >     $ make_prereqs all
> >     index.html index.md Makefile metadata.xml templates/default.html 
> 
> Was it an explicit prereq of an implicit rule, as above?

This is what I have...

%.html : %.md templates/default.html metadata.xml
        pandoc \
        --template templates/default.html --to=html5 \
        --smart --standalone --toc \
        -o $@ $<

(Used it to make this...
  http://zgp.org/targeted-advertising-considered-harmful/
...comments welcome.)

-- 
Don Marti                      +1-510-332-1587 (mobile)
http://zgp.org/~dmarti/        Alameda, California, USA
dmarti at zgp.org


More information about the linux-elitists mailing list