From aaae256525d07aff8d83d4b8ec6332bfd2bb21eb Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 22 Mar 2014 18:35:00 -0400 Subject: Makefiles: inhibit emacs from creating *~ files when formatting a file --- common.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common.mk') diff --git a/common.mk b/common.mk index ec8135f..58366d7 100644 --- a/common.mk +++ b/common.mk @@ -13,6 +13,7 @@ edit = sed -e 's|m4_include(lib/\(.*\))|. $$(librelib \1)|' # Usage: $(call indent,FILENAME) # Command to auto-indent a file. indent = emacs --batch $1 \ + --eval '(setq make-backup-files nil)' \ --eval '(setq sh-basic-offset 8)' \ --eval '(indent-region (point-min) (point-max) nil)' \ -f save-buffer &>/dev/null @@ -60,7 +61,7 @@ install_files += $(addprefix $(DESTDIR)$(bindir)/,$(progs)) \ $(addprefix $(DESTDIR)$(mandir)/man6/,$(filter %.6,$(mans))) \ $(addprefix $(DESTDIR)$(mandir)/man7/,$(filter %.7,$(mans))) \ $(addprefix $(DESTDIR)$(mandir)/man8/,$(filter %.8,$(mans))) -clean_files += $(patsubst %.in,%,$(copy_files)) $(copy_files) $(mans) $(wildcard *.pot *.ugly* *~) +clean_files += $(patsubst %.in,%,$(copy_files)) $(copy_files) $(mans) $(wildcard *.pot *.ugly*) pots += $(filter-out $(no-pots) ,$(progs)) pot_files += $(addsuffix .pot,$(pots)) -- cgit v1.2.2