Makefile 361 B

12345678910111213141516
  1. RM=rm
  2. EMACS=emacs
  3. clean:
  4. -$(RM) *.test
  5. # TODO:
  6. # - mark the places where the indentation is known to be incorrect,
  7. # and allow either ignoring those errors or not.
  8. %.test: %
  9. -$(RM) $<.new
  10. $(EMACS) --batch $< \
  11. --eval '(indent-region (point-min) (point-max) nil)' \
  12. --eval '(write-region (point-min) (point-max) "$<.new")'
  13. diff -u -B $< $<.new