DRAWINGS := $(wildcard *.dxf) CONFIGS := $(DRAWINGS:.dxf=.etp) CFGGEN := ../src/etherpix_config_gen .PHONY: all clean .SUFFIXES: .SECONDARY: all: $(CONFIGS) %.etp: %.dxf $(CFGGEN) $(CFGGEN) $< $@ clean: rm -f $(CONFIGS)