]> granicus.if.org Git - apache/commitdiff
Avoid using a tmpfile with fixed name when creating export_files, since this
authorStefan Fritsch <sf@apache.org>
Sat, 4 Jun 2011 17:41:13 +0000 (17:41 +0000)
committerStefan Fritsch <sf@apache.org>
Sat, 4 Jun 2011 17:41:13 +0000 (17:41 +0000)
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

index 9f9fa13601ffb85e44ac7891f6504641c759d411..42d1fe5c1425075f271562479dd5b83d8a536ada 100644 (file)
@@ -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 $?` > $@