summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.am7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 111dde19d..9df6f5ed7 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -162,9 +162,10 @@ localedir = $(datadir)/locale
BUILT_SOURCES = localedir.h
DISTCLEANFILES = localedir.h
localedir.h:
- @rm -f $@
- echo '#define LOCALEDIR "$(localedir)"' >$@
- @chmod a-w $@
+ @rm -f $@ $@-t
+ echo '#define LOCALEDIR "$(localedir)"' >$@-t
+ @chmod a-w $@-t
+ mv $@-t $@
BUILT_SOURCES += dircolors.h
dircolors.h: dcgen dircolors.hin