From 639c26f54a0e69404e863ff039e0919403bb15f9 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Sat, 4 Jun 2011 17:41:13 +0000 Subject: [PATCH] Avoid using a tmpfile with fixed name when creating export_files, since this is bad for parallel builds. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1131446 13f79535-47bb-0310-9956-ffa450edef68 --- server/Makefile.in | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/server/Makefile.in b/server/Makefile.in index 9f9fa13601..42d1fe5c14 100644 --- a/server/Makefile.in +++ b/server/Makefile.in @@ -54,16 +54,13 @@ delete-exports: fi export_files: - tmp=export_files_unsorted.txt; \ - rm -f $$tmp && touch $$tmp; \ - for dir in $(EXPORT_DIRS); do \ - ls $$dir/*.h >> $$tmp; \ - done; \ - for dir in $(EXPORT_DIRS_APR); do \ - (ls $$dir/ap[ru].h $$dir/ap[ru]_*.h >> $$tmp 2>/dev/null); \ - done; \ - sort -u $$tmp > $@; \ - rm -f $$tmp + ( for dir in $(EXPORT_DIRS); do \ + ls $$dir/*.h ; \ + done; \ + for dir in $(EXPORT_DIRS_APR); do \ + ls $$dir/ap[ru].h $$dir/ap[ru]_*.h 2>/dev/null; \ + done; \ + ) | sort -u > $@ exports.c: export_files $(AWK) -f $(top_srcdir)/build/make_exports.awk `cat $?` > $@ -- 2.40.0