[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: makefile generator
From: |
Karl Hammar |
Subject: |
Re: makefile generator |
Date: |
Sun, 13 Apr 2008 23:41:34 +0200 (CEST) |
-
This is a multipart MIME message.
Karl:
> Attached program finds dependencies in lilypond files.
> E.g.:
>
> $ grep include Sliv.ly global.ly
> Sliv.ly:\include "global.ly"
> Sliv.ly:\include "Mliv.ly"
> Sliv.ly:\include "score.ly"
> global.ly:\include "choirbook.ly"
> global.ly:\include "../common/global.ly"
> $ depend_ly ps Sliv.ly
> Sliv.ps: Sliv.ly ../common/global.ly Mliv.ly choirbook.ly global.ly
> score.ly
>
> So you can have:
>
> %.ps: %.ly
> lilypond --ps $<
>
> dep depend.mk:
> depend_ly ps S*.ly > depend.mk
>
> -include depend.mk
>
> in your makefile.
And here is one for latex-files.
(on files from http://aspodata.se/noter/palestrina/dies_sanctificatus/)
$ depend_tex eps all.tex
all.dvi: all.tex Giovanni_Pierluigi_da_Palestrina.eps Salt-systems.tex
Sbas-systems.tex Skb-systems.tex Sold-systems.tex Ssopran-systems.tex
Stenor-systems.tex Tdiessancti.eps Theac.eps
all.psfonts: Salt.eps Sbas.eps Skb.eps Sold.eps Ssopran.eps Stenor.eps
or from lshort-german (the not so short introdution to latex in german):
$ depend_tex eps l2kurz.tex
l2kurz.dvi: l2kurz.tex a.ps l2gfdl.tex l2k1.tex l2k2.tex l2k3.tex l2k4.tex
l2k5.tex l2k6.tex l2ka.tex l2ksym.tex
$ grep a.ps *.tex
l2k4.tex:Hier \includegraphics{a.ps} ist ein Bild.
l2k4.tex:Hier \includegraphics{a.ps} ist
or from an article (it does not work with includegraphics in macros
as witnessed by the #1.eps and #2.eps, but it finds bib-files)
$ depend_tex eps all.tex
all.dvi: all.tex #1.eps #2.eps 1572-altus-slutet.eps
1585-altus-slutet.eps arcbeg-1.eps arcend-1.eps litt.bib lu-1.eps lu-2.eps
musvet.eps palhic-1.eps pallap-1.eps victbeg-1.eps victend-1.eps
all.psfonts: arcbeg.eps arcend.eps lu.eps palhic.eps pallap.eps victbeg.eps
victend.eps
Regards,
/Karl
depend_tex
Description: depend_tex