Browse Source

Conditionnal include of depend files depending on the current goal.

remotes/origin/translate_notes
Alexandre Dupas 15 years ago
parent
commit
2974c4e2b4
  1. 11
      makefile

11
makefile

@ -80,11 +80,18 @@ $(PDF): %.pdf: %.tex %.aux
%.d: %.sb
$(MAKE_SONGBOOK) -s $< -d -o $@
include $(SONGBOOKS:%.sb=%.d)
%.pdf: %.ly
@$(LILYPOND) --output=$(@:%.pdf=%) $<
@rm $(@:%.pdf=%.ps)
$(CHORDS): $(CHORDS_SRC)
$(MAKE_CHORDS) -o $@
ifeq (.pdf,$(suffix $(MAKECMDGOALS)))
include $(MAKECMDGOALS:%.pdf=%.d)
else ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),cleanall)
include $(TARGETS:%=%.d)
endif
endif

Loading…
Cancel
Save