More fun with GNU make
2004-04-04 10:05 pmFinally got sufficiently disgusted with the fact that my website has my songs are indexed alphabetically by filename instead of by title, and fixed it.
The magic makefile lines are:
This assumes that
The magic makefile lines are:
ZSONGS := $(shell perl -n -e '/file\{(.+\.flk)/ && print "$$1\n"' zongbook.tex)
SONGS = $(filter-out $(EXCLUDE), $(ZSONGS)) This assumes that
zongbook.tex contains lines like: \file{oldtime.flk} % Old Time Computing .. and of course it does: it's the LaTeX file that generates my typeset songbook index.