song.mk: Add file

This commit is contained in:
Jan Lindemann 2009-12-03 19:10:08 +00:00 committed by Jan Lindemann
commit cc6befea9c

27
make/song.mk Normal file
View file

@ -0,0 +1,27 @@
CHOPRO = $(wildcard *.chopro *.cho *.CHOPRO)
CHOPRO_PDF = $(addsuffix .pdf,$(basename $(CHOPRO)))
CHOPRO_PS = $(addsuffix .ps,$(basename $(CHOPRO)))
all: $(CHOPRO_PDF)
install:
clean: clean.chopro clean.tmp
distclean:
pdf: $(CHOPRO_PDF)
kpdf: $(CHOPRO_PDF)
kpdf $<
%.pdf: %.ps
ps2pdf $< $@.tmp
mv $@.tmp $@
%.ps: %.chopro
chord $< > $@.tmp
mv $@.tmp $@
clean.chopro:
rm -f $(CHOPRO_PS) $(CHOPRO_PDF)
clean.tmp:
rm -f *.tmp