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