INPUTS := $(wildcard *.scd) man: $(addsuffix .gz, $(basename $(INPUTS))) html: $(addsuffix .html, $(basename $(INPUTS))) all: html man %.gz: %.scd scdoc < $< | gzip > $@ %.html: %.scd scd2html < $< > $@ clean: rm -f *.html *.gz .PHONY: all clean html man