Jeff Trawick <[EMAIL PROTECTED]> 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 | [EMAIL PROTECTED] | PGP public key at web site:
http://www.geocities.com/SiliconValley/Park/9289/
Born in Roswell... married an alien...