From 84b082481eef1acdfce7d8d3119888ebafc3212c Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Wed, 15 Aug 2001 14:06:27 +0000 Subject: [PATCH] Tweak server/Makefile so that the rules for generating exports.c are compatible with make utilities which don't expand wildcards in a dependency list (e.g., OS/390 make, certain levels of GNU make). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90167 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 5 +++++ server/Makefile.in | 14 ++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 4aacd9d2fb..04822bf35b 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,10 @@ Changes with Apache 2.0.24-dev + *) Tweak server/Makefile so that the rules for generating exports.c + are compatible with make utilities which don't expand wildcards + in a dependency list (e.g., OS/390 make, certain levels of GNU + make). [Jeff Trawick] + *) Install the SSL headers. [John Sterling ] *) Begin to sanitize the MPM configuration directives. Now, all diff --git a/server/Makefile.in b/server/Makefile.in index 7e40964f1c..3a01deec4c 100644 --- a/server/Makefile.in +++ b/server/Makefile.in @@ -17,7 +17,7 @@ LTLIBRARY_SOURCES = \ util_filter.c exports.c buildmark.c scoreboard.c \ error_bucket.c protocol.c core.c request.c -TARGETS = $(LTLIBRARY_NAME) $(CORE_IMPLIB_FILE) export_vars.h httpd.exp +TARGETS = delete-exports $(LTLIBRARY_NAME) $(CORE_IMPLIB_FILE) export_vars.h httpd.exp include $(top_srcdir)/build/rules.mk include $(top_srcdir)/build/library.mk @@ -36,7 +36,17 @@ EXPORT_FILES = $(top_srcdir)/include/*.h \ $(top_srcdir)/srclib/apr/include/*.h \ $(top_srcdir)/srclib/apr-util/include/*.h -exports.c: $(EXPORT_FILES) +delete-exports: + @if test -f exports.c; then \ + headers="`find $(top_srcdir)/include/*.h -newer exports.c`" ; \ + if test -n "$$headers"; then \ + echo Found newer headers. Will rebuild exports.c. ; \ + echo rm -f exports.c ; \ + rm -f exports.c ; \ + fi \ + fi + +exports.c: $(AWK) -f $(top_srcdir)/build/make_exports.awk $(EXPORT_FILES) > $@ export_vars.h: -- 2.50.1