cvs commit: mod_parrot Makefile

[email protected]
Newsgroups perl.cvs.mod_parrot
Message-ID <[email protected]>
cvsuser     02/05/17 09:19:41

  Modified:    .        Makefile
  Log:
  Added command to run some patching on Parrot
  me have a gnu make'ism in $CURDIR
  
  Revision  Changes    Path
  1.5       +5 -2      mod_parrot/Makefile
  
  Index: Makefile
  ===================================================================
  RCS file: /cvs/public/mod_parrot/Makefile,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -w -r1.4 -r1.5
  --- Makefile	11 Apr 2002 03:37:51 -0000	1.4
  +++ Makefile	17 May 2002 16:19:41 -0000	1.5
  @@ -1,4 +1,3 @@
  -
   APACHEDIR=/usr/local/apache
   
   PARROT_DIR=/usr/src/parrot
  @@ -7,7 +6,7 @@
   all: mod_parrot.so
   
   mod_parrot.so: mod_parrot.c
  -	make -C $(PARROT_DIR) shared
  +	make -C $(PARROT_DIR) shared-only
   	$(APACHEDIR)/bin/apxs -Wall -I $(PARROT_DIR)/include -c -n parrot mod_parrot.c -L$(PARROT_LIB_DIR) -lparrot 
   
   install: mod_parrot.so
  @@ -22,3 +21,7 @@
   hsd:
   	LD_LIBRARY_PATH=$(PARROT_LIB_DIR) $(APACHEDIR)/bin/httpd -X
   
  +patch:	mod_parrot.diff
  +	perl -pi -ne 's#(.Config{ccflags})#"\1 -I$(CURDIR) -I$(APACHEDIR)/include"#' $(PARROT_DIR)/Configure.pl
  +	perl -pi -ne 's#(.Config{libs})#"\1 -L$(CURDIR)"#' $(PARROT_DIR)/Configure.pl
  +	patch -d $(PARROT_DIR) -p0 < mod_parrot.diff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.