Commit b3e94647 authored by Stefan Fritsch's avatar Stefan Fritsch
Browse files

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
parent e2b08ece
Loading
Loading
Loading
Loading
+4 −7
Changes for server/Makefile.in: 4 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -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; \
	( 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 >> $$tmp 2>/dev/null); \
	      ls $$dir/ap[ru].h $$dir/ap[ru]_*.h 2>/dev/null; \
	  done; \
	sort -u $$tmp > $@; \
	rm -f $$tmp
	) | sort -u > $@

exports.c: export_files
	$(AWK) -f $(top_srcdir)/build/make_exports.awk `cat $?` > $@