Fix problems caught with --enable-gcc-warnings
[emacs.git] / test / indent / Makefile
blob83162681d72226818bea4ee2d8979657a6c49af8
1 RM=rm
2 EMACS=../../src/emacs
4 all: clean $(addsuffix .test,$(wildcard *.*))
6 clean:
7 -$(RM) -f *.new
9 # TODO:
10 # - mark the places where the indentation is known to be incorrect,
11 # and allow either ignoring those errors or not.
12 %.test: %
13 $(EMACS) --batch $< \
14 --eval '(indent-region (point-min) (point-max) nil)' \
15 --eval '(write-region (point-min) (point-max) "$<.new")'
16 diff -u -B $< $<.new