Re: dependencies?
| From: | Kristian Köhntopp | Date: | Fri, 12 Nov 1999 20:09:42 +0000 |
| Subject: | Re: dependencies? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-12395@lists.php.net to get a copy of this message | ||
Rasmus Lerdorf wrote:
> > Or is the makefile/Makefile.in updated manually from time to
> > time?
>
> It is a manual thing. Not all make programs support an include directive.
>
Huh! The build process assumes perl (from Makefile.in):
depend: parser-scanner
$(CC) $(CFLAGS) -MM $(SOURCE) | perl -pe 's|regex/regex.h||;' > Makefile
.depend
$(CC) $(CFLAGS) -MM $(FUNCTIONS_SOURCE) | perl -pe 's|^(.+\.o)|functions
/$$1|; s|regex/regex.h||;' >> Makefile.depend
but respects systems with a "make" without includes? Perhaps we should
use perl (or sed) to mangle the Makefile.in or Makefile, then?
sed -e '/# do not edit below -- makedepend/,$d' < $MAKEFILE > $TMP
echo '# do not edit below -- makedepend' >> $TMP
echo "# created
date" >> $TMP
cat $MAKEFILE.depend >> $TMP
mv $TMP $MAKEFILE
or something.
Kristian
--
Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH
Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00
Using PHP3? See our web development library at
http://phplib.netuse.de/ (We have moved! Update your
bookmarks!)