Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 44234 invoked by uid 500); 27 Jul 2001 19:10:56 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 44196 invoked from network); 27 Jul 2001 19:10:56 -0000 X-Authentication-Warning: rdu26-58-158.nc.rr.com: trawick set sender to trawick@attglobal.net using -f Sender: trawick@rdu26-58-158.nc.rr.com To: new-httpd@apache.org Subject: Re: server/Makefile.in, exports.c broken on some systems References: <200107271648.MAA20951@smtp-server.nc.rr.com> From: Jeff Trawick Date: 27 Jul 2001 15:00:02 -0400 In-Reply-To: <200107271648.MAA20951@smtp-server.nc.rr.com> Message-ID: Lines: 48 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Jeff Trawick writes: > I've seen this on OS/390 and Solaris... > > *.h in this section > > EXPORT_FILES = $(top_srcdir)/include/*.h \ > $(top_srcdir)/os/$(OS_DIR)/*.h \ > $(top_srcdir)/srclib/apr/include/*.h \ > $(top_srcdir)/srclib/apr-util/include/*.h > > exports.c: $(EXPORT_FILES) > $(AWK) -f $(top_srcdir)/build/make_exports.awk $(EXPORT_FILES) > > $@ > > is not being expanded by make, and it bails out with a message like > this since there is no file foo/*.h: > > make: Error -- FSUM9415 Don't know how to make > /u/trawick/apache/httpd-2.0/include/*.h I can't seem to fix this in a timely manner. I tried something like this in Makefile[.in] but it isn't always run: exports.c: @bldit="0" ; \ echo "what to do? " ; \ if test -f exports.c ; then \ echo "looking for newer headers" ; \ headers="`find $(top_srcdir) -name '*.h' -newer exports.c`" ; \ echo "headers $$headers" ; \ if test -n "$$headers"; then \ echo Found newer headers. Will rebuild exports.c ; \ bldit="1" ; \ fi ; \ else \ bldit="1" ; \ fi ; \ if test "$$bldit" = "1" ; then \ $(AWK) -f $(top_srcdir)/build/make_exports.awk $(EXPORT_FILES) > $@ ; \ fi -- Jeff Trawick | trawick@attglobal.net | PGP public key at web site: http://www.geocities.com/SiliconValley/Park/9289/ Born in Roswell... married an alien...