build: use a fixed-name temporary in man/Makefile.am
authorJim Meyering <meyering@redhat.com>
Sat, 25 Jul 2009 21:16:41 +0000 (23:16 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 26 Jul 2009 18:42:31 +0000 (20:42 +0200)
* man/Makefile.am (check-x-vs-1): Using a fixed-name temporary file
is better than one ending in -$$, because many -$$-suffixed files
may accumulate over time.

man/Makefile.am

index cacaba6..b56db94 100644 (file)
@@ -186,7 +186,7 @@ ASSORT = LC_ALL=C sort
 .PHONY: check-x-vs-1
 check-x-vs-1:
        $(AM_V_GEN)PATH=../src$(PATH_SEPARATOR)$$PATH; export PATH;     \
-       t=ls-files.$$$$;                                                \
+       t=$@-t;                                                         \
        (cd $(srcdir) && ls -1 *.x) | sed 's/\.x$$//' | $(ASSORT) > $$t;\
        (echo $(dist_man1_MANS) $(NO_INSTALL_PROGS_DEFAULT)             \
          | tr -s ' ' '\n' | sed 's/\.1$$//')                           \