TOOLS_SRC_DIR = ~/devel/repos/tools/user-tools include $(TOOLS_SRC_DIR)/Makefile.lists.mk TOOL_SRC_FILES = $(addprefix $(TOOLS_SRC_DIR)/,$(TOOLS)) PAGES = $(foreach tool,$(TOOLS),./$(tool).html) PAGES_BODY = $(foreach tool,$(TOOLS),./$(tool).body.html) allin1.html: allin1-header.htm $(PAGES_BODY) cat allin1-header.htm $(PAGES_BODY) > $@ htmlpages: $(PAGES) .PHONY: htmlpages $(PAGES): ./%.html: $(TOOLS_SRC_DIR)/% pod2html --header --htmldir . < $< > $@ $(PAGES_BODY): ./%.body.html: ./%.html tool=$(basename $<); \ parsel 'body > *:not(table:last-child)' < $< | \ sed -e 1d -e 's/\\r/\r/g; s/\\n/\n/g; s/\\\\/\\/g' | \ sed -e "s/ $@