Browse Source

makefile: support books/ dir

remotes/origin/cmake
Romain Goffe 13 years ago
parent
commit
5a32091c5c
  1. 11
      makefile

11
makefile

@ -15,8 +15,9 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
SONGBOOKS := $(wildcard books/*.sb)
TARGETS = $(SONGBOOKS:%.sb=%)
BOOKS_DIR=books/
SONGBOOKS := $(wildcard $(BOOKS_DIR)/*.sb)
TARGETS = $(SONGBOOKS:$(BOOKS_DIR)/%.sb=%)
PDF = $(TARGETS:%=%.pdf)
@ -58,7 +59,7 @@ clean:
@rm -f $(TARGETS:%=%.d) $(TARGETS:%=%.tex) $(TARGETS:%=%.aux) \
$(TARGETS:%=%.toc) $(TARGETS:%=%.out) $(TARGETS:%=%.log) \
$(TARGETS:%=%.nav) $(TARGETS:%=%.snm)
@rm -f *.sbx *.sxd
@rm -f *.sbx *.sxd *.sxc
@rm -f lilypond/*.ps
@rm -f *.pyc
@ -79,10 +80,10 @@ $(PDF): %.pdf: %.tex %.aux
%.sbx: %.sxd
$(MAKE_INDEX) $< > $@
%.tex: books/%.sb
%.tex: $(BOOKS_DIR)/%.sb
$(MAKE_SONGBOOK) -s $< -o $@
%.d: books/%.sb
%.d: $(BOOKS_DIR)/%.sb
$(MAKE_SONGBOOK) -s $< -d -o $@
%.pdf: %.ly

Loading…
Cancel
Save