NAMES = BlueDataDistributor GNETLIST = gnetlist GSCHEM = gschem PS2PDF = ps2pdf .PHONY: all nets pdfs tidy clean .SUFFIXES: .SECONDARY: all: nets pdfs tidy nets: $(addsuffix .net,$(NAMES)) pdfs: $(addsuffix .sch.pdf,$(NAMES)) $(patsubst %.ps,%.pdf,$(wildcard *.ps)) %.net: %.sch $(GNETLIST) -q -g PCB -o $@ $< %.sch.ps: %.sch gschem-print.scm $(GSCHEM) -p -s gschem-print.scm -o $@ $< %.pdf: %.ps $(PS2PDF) $< $@ tidy: rm -f *~ *- *.log *.ps clean: tidy rm -f *.net *.pdf