lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DOCS: include a sample "Makefile"?


From: Jonathan Kulp
Subject: Re: DOCS: include a sample "Makefile"?
Date: Thu, 14 May 2009 23:06:57 -0500

I just realized that the "web-clean" target in previously-attached Makefile would wipe out the finished html product.  I modified the "web" target to copy it to safety so "web-clean" only gets rid of intermediate files. New "web" target:

web:
    $(LILYBOOK_HTML)
    $(HTML)
    cp -R $(WEBDIR)/$(FILE)/ ./
    $(BROWSER) $(FILE)/$(FILE).html &


Jon


On Thu, May 14, 2009 at 10:33 PM, Jonathan Kulp <address@hidden> wrote:

 
%%%%%%% LILYPOND-BOOK MAKEFILE %%%%%%%%%

SHELL=/bin/sh
FILE=workbook_main
OUTDIR=out
WEBDIR=htmlout
VIEWER=acroread
BROWSER=firefox
LILYBOOK_PDF=lilypond-book --output=$(OUTDIR) --pdf $(FILE).lytex      
LILYBOOK_HTML=lilypond-book --output=$(WEBDIR) $(FILE).lytex    
PDF=cd $(OUTDIR) && pdflatex $(FILE)
HTML=cd $(WEBDIR) && latex2html $(FILE)
INDEX=cd $(OUTDIR) && makeindex $(FILE)
PREVIEW=$(VIEWER) $(OUTDIR)/$(FILE).pdf &

all: pdf web

pdf:
       $(LILYBOOK_PDF)
       $(PDF)
       $(INDEX)
       $(LILYBOOK_PDF)
       $(PDF)
       $(PREVIEW)

web:
       $(LILYBOOK_HTML)
       $(HTML)
       $(BROWSER) $(WEBDIR)/$(FILE)/$(FILE).html &

keep: pdf
       cp $(OUTDIR)/$(FILE).pdf Gratis.pdf

clean:
       rm -rf $(OUTDIR)

web-clean:
       rm -rf $(WEBDIR)





--
Jonathan Kulp
http://www.jonathankulp.com

reply via email to

[Prev in Thread] Current Thread [Next in Thread]