File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / pdo / Makefile.frag
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:31:55 2013 UTC (11 years ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.17

    1: phpincludedir=$(prefix)/include/php
    2: 
    3: PDO_HEADER_FILES= \
    4: 	php_pdo.h \
    5: 	php_pdo_driver.h
    6: 
    7: 
    8: $(srcdir)/pdo_sql_parser.c: $(srcdir)/pdo_sql_parser.re
    9: 	(cd $(top_srcdir); $(RE2C) -o ext/pdo/pdo_sql_parser.c ext/pdo/pdo_sql_parser.re)
   10: 
   11: install-pdo-headers:
   12: 	@echo "Installing PDO headers:          $(INSTALL_ROOT)$(phpincludedir)/ext/pdo/"
   13: 	@$(mkinstalldirs) $(INSTALL_ROOT)$(phpincludedir)/ext/pdo
   14: 	@for f in $(PDO_HEADER_FILES); do \
   15: 		if test -f "$(top_srcdir)/$$f"; then \
   16: 			$(INSTALL_DATA) $(top_srcdir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \
   17: 		elif test -f "$(top_builddir)/$$f"; then \
   18: 			$(INSTALL_DATA) $(top_builddir)/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \
   19: 		elif test -f "$(top_srcdir)/ext/pdo/$$f"; then \
   20: 			$(INSTALL_DATA) $(top_srcdir)/ext/pdo/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \
   21: 		elif test -f "$(top_builddir)/ext/pdo/$$f"; then \
   22: 			$(INSTALL_DATA) $(top_builddir)/ext/pdo/$$f $(INSTALL_ROOT)$(phpincludedir)/ext/pdo; \
   23: 		else \
   24: 			echo "hmmm"; \
   25: 		fi \
   26: 	done;
   27: 
   28: # mini hack
   29: install: $(all_targets) $(install_targets) install-pdo-headers
   30: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>