MARC_EXPORT_BIN=./marc_export_custom MARC_STATS=./stats-distribution.pl %.marc: %.id @echo ' ' MARC $(notdir $@); \ $(MARC_EXPORT_BIN) $(MARC_PARAMS) <$< --output-file $@.tmp 2>&1 | tee $@.log \ && mv $@.tmp $@ grep -vsq -e 'router@private-router.localdomain' -e 'OpenSRF::' $@.log %.marc-stats.csv: %.marc @echo ' ' MARCSTATS $(notdir $<); \ $(MARC_STATS) $< >$@.tmp && mv $@.tmp $@