installfiles+=$(wildcard help/C/*.html) \
	$(wildcard help/C/ly/*.png) \
	$(wildcard help/C/figures/*.png)

USER_MANUAL_SOURCES=$(wildcard help/C/*.xml) help/C/solfege.xml.in

ly_gen_png_target = $(patsubst %.ly,%.png,$(filter-out $(wildcard help/C/ly/*common*.ly),$(wildcard help/C/ly/*.ly)))

all: $(ly_gen_png_target)

maintainer-clean:
	rm -f $(ly_gen_png_target)
	rm -f help/C/*.html

dist_files += help/C/solfege.pot \
	help/C/Makefile \
	help/C/solfege.xml.in

help/C/solfege.pot: $(USER_MANUAL_SOURCES)
ifndef XML2PO
	@echo
	@echo "You need to install xml2po to update help/C/solfege.pot"
	@echo
	@exit -1
else
	$(XML2PO) -o help/C/solfege.pot $(USER_MANUAL_SOURCES)
endif

help/C/index.html: $(USER_MANUAL_SOURCES)

