Makefile 479 B

1234567891011121314151617181920
  1. LOCAL_MAKE_INCLUDE := include
  2. override TEMPLATE := make_templates/unit_tests
  3. override LOCAL_TEMPLATE := $(LOCAL_MAKE_INCLUDE)/$(TEMPLATE)
  4. ifneq ($(shell cat $(LOCAL_TEMPLATE) 2> /dev/null),)
  5. include $(LOCAL_TEMPLATE)
  6. else
  7. include $(TEMPLATE)
  8. endif
  9. OCTAVE := octave
  10. $(TEMPDIR)/vector.run: matrix.data square_matrix.data matrix_vector.data dot_product.data
  11. ifneq ($(shell command -v $(OCTAVE) 2> /dev/null),)
  12. %.data: %.octave
  13. $(OCTAVE) -q $< | sed 's/[ABans=]//g' > $@
  14. endif