OSSP CVS Repository

ossp - Difference in ossp-pkg/uuid/Makefile.in versions 1.32 and 1.33
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/uuid/Makefile.in 1.32 -> 1.33

--- Makefile.in  2005/08/31 20:07:29     1.32
+++ Makefile.in  2005/09/01 22:24:01     1.33
@@ -56,6 +56,7 @@
 TRUE        = true
 POD2MAN     = pod2man
 PERL        = @PERL@
+PHP         = @PHP@
 
 LIB_NAME    = libuuid.la
 LIB_OBJS    = uuid.lo uuid_md5.lo uuid_sha1.lo uuid_prng.lo uuid_mac.lo uuid_ui64.lo uuid_str.lo
@@ -74,12 +75,16 @@
 PERL_NAME   = perl/blib/lib/OSSP/uuid.pm
 PERL_OBJS   = perl/uuid.pm
 
-TARGETS     = $(LIB_NAME) @DCE_NAME@ @CXX_NAME@ $(PRG_NAME) @PERL_NAME@
+PHP_NAME    = php/modules/uuid.so
+PHP_OBJS    = php/uuid.c
+
+TARGETS     = $(LIB_NAME) @DCE_NAME@ @CXX_NAME@ $(PRG_NAME) @PERL_NAME@ @PHP_NAME@
 
 WITH_DCE         = @WITH_DCE@
 WITH_CXX         = @WITH_CXX@
 WITH_PERL        = @WITH_PERL@
 WITH_PERL_COMPAT = @WITH_PERL_COMPAT@
+WITH_PHP         = @WITH_PHP@
 
 .SUFFIXES:
 .SUFFIXES: .c .cc .o .lo
@@ -117,6 +122,10 @@
         @cd perl && $(PERL) Makefile.PL PREFIX=$(prefix) COMPAT=$(WITH_PERL_COMPAT) && $(MAKE) $(MFLAGS) all
         @touch $(PERL_NAME)
 
+$(PHP_NAME): $(PHP_OBJS) $(LIB_NAME)
+        @cd php && $(MAKE) $(MFLAGS) -f Makefile.local PHP=$(PHP)
+        @touch $(PERL_NAME)
+
 uuid.lo: uuid.c config.h uuid.h uuid_md5.h uuid_sha1.h uuid_prng.h uuid_mac.h uuid_ui64.h uuid_str.h uuid_bm.h uuid_ac.h
 uuid_mac.lo: uuid_mac.c config.h uuid_mac.h
 uuid_md5.lo: uuid_md5.c uuid_md5.h
@@ -190,6 +199,10 @@
             echo "==== Perl bindings to C API"; \
             (cd perl && $(MAKE) $(MFLAGS) test); \
         fi
+        -@if [ ".$(WITH_PHP)" = .yes ]; then \
+            echo "==== PHP bindings to C API"; \
+            (cd php && $(MAKE) $(MFLAGS) -f Makefile.local test PHP=$(PHP)); \
+        fi
 
 install:
         $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(prefix)
@@ -227,6 +240,9 @@
         -@if [ ".$(WITH_PERL)" = .yes ]; then \
             (cd perl && $(MAKE) $(MFLAGS) install); \
         fi
+        -@if [ ".$(WITH_PHP)" = .yes ]; then \
+            (cd php && $(MAKE) $(MFLAGS) -f Makefile.local install EXTDIR=$(prefix)/lib/php PHP=$(PHP)); \
+        fi
 
 uninstall:
         -$(RM) $(DESTDIR)$(mandir)/man1/uuid.1
@@ -280,6 +296,9 @@
         -@if [ ".$(WITH_PERL)" = .yes ]; then \
             (cd perl && $(MAKE) $(MFLAGS) clean || true); \
         fi
+        -@if [ ".$(WITH_PHP)" = .yes ]; then \
+            (cd php && $(MAKE) $(MFLAGS) -f Makefile.local clean || true); \
+        fi
 
 distclean: clean
         -$(RM) config.log config.status config.cache
@@ -288,10 +307,16 @@
         -@if [ ".$(WITH_PERL)" = .yes ]; then \
             (cd perl && $(MAKE) $(MFLAGS) distclean || true; rm -f Makefile.old); \
         fi
+        -@if [ ".$(WITH_PHP)" = .yes ]; then \
+            (cd php && $(MAKE) $(MFLAGS) -f Makefile.local distclean || true); \
+        fi
 
 realclean: distclean
         -$(RM) uuid.3 uuid.1
         -$(RM) configure config.h.in
         -$(RM) shtool
         -$(RM) ltmain.sh libtool.m4 config.guess config.sub
+        -@if [ ".$(WITH_PHP)" = .yes ]; then \
+            (cd php && $(MAKE) $(MFLAGS) -f Makefile.local realclean || true); \
+        fi
 

CVSTrac 2.0.1