Re: dependencies?
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: dependencies? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-12398@lists.php.net to get a copy of this message | ||
On Fri, 12 Nov 1999, Kristian Köhntopp wrote:
> 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
But it only relies on Perl for people who need to generate the make depend
output. Very different. We don't need Perl on a system to do a normal
PHP build.
-Rasmus