Created
June 16, 2012 10:53
-
-
Save alex-ac/2940964 to your computer and use it in GitHub Desktop.
Lilypond makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LILYPOND:=lilypond | |
LILYPONDFLAGS:= | |
BUILDDIR:=. | |
SRCDIR:=. | |
INSTALLDIR:=. | |
MAINPDF=$(SRCDIR)/pdf.ly | |
MAINMIDI=$(SRCDIR)/midi.ly | |
SOURCES=$(SRCDIR)/score.ly $(SRCDIR)/title.ly ${SRCDIR}/macro.ly | |
PDF=Swanee_River_Boogie.pdf | |
MIDI=Swanee_River_Boogie.midi | |
default: all | |
all: $(BUILDDIR)/$(MIDI) $(BUILDDIR)/$(PDF) | |
$(BUILDDIR)/$(PDF):$(MAINPDF) $(SOURCES) | |
$(LILYPOND) $(LILYPONDFLAGS) -o $(BUILDDIR)/$(PDF) $(MAINPDF) | |
$(BUILDDIR)/$(MIDI):$(MAINMIDI) $(SOURCES) | |
$(LILYPOND) $(LILYPONDFLAGS) -o $(BUILDDIR)/$(MIDI) $(MAINMIDI) | |
clean: | |
$(RM) $(BUILDDIR)/$(PDF) $(BUILDDIR)/$(MIDI) | |
install: $(BUILDDIR)/$(PDF) $(BUILDDIR)/$(MIDI) | |
$(INSTALL) $(INSTALLFLAGS) $(BUILDDIR)/$(PDF) $(PREFIX)/$(PDF) | |
$(INSTALL) $(INSTALLFLAGS) $(BUILDDIR)/$(MIDI) $(PREFIX)/$(MIDI) | |
uninstall: $(PREFIX)/$(PDF) $(PREFIX)/$(MIDI) | |
$(UNINSTALL) $(UNINSTALLFLAGS) $(PREFIX)/$(PDF) | |
$(UNINSTALL) $(UNINSTALLFLAGS) $(PREFIX)/$(MIDI) | |
# | |
# alex@alex-laptop ~/docs/sheets/library/Swanee_River_Boogie $ make -j1 | |
# lilypond -o ./Swanee_River_Boogie.midi ./midi.ly | |
# GNU LilyPond 2.14.2 | |
# Processing `./midi.ly' | |
# Разбираю... | |
# warning: no music found in score | |
# success: Compilation successfully completed | |
# cc -o .o | |
# gcc: фатальная ошибка: не заданы входные файлы | |
# компиляция прервана. | |
# make: *** [.o] Ошибка 1 | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment