<commit_before># Makefile
#
# Usage: 
# - make exe src=source.php
# - make exe src=test.php INCLUDEDIR=/home/thekid/devel/php/php5/ PHPLIBDIR=/home/thekid/devel/php/php5/
#
# Notes:
# - INCLUDEDIR is the directory where PHPs includes are
# - PHPLIBDIR is the directory where libphp4.la and libphp4.a reside
#
# $Id$

MAKEEMBED=php -q php2cembed.php
PHPLIBDIR?=.
INCLUDEDIR?=/usr/local/include/php
LIBDIR?=/usr/local/lib
INCLUDES=-I$(INCLUDEDIR) -I$(INCLUDEDIR)/main -I$(INCLUDEDIR)/Zend -I$(INCLUDEDIR)/TSRM -I$(INCLUDEDIR)/sapi/embed
LIBDIRS=-L$(LIBDIR)
CC=gcc
CFLAGS=-g -Wall
LIBTOOL=$(SHELL) libtool

all:    err
err:
	@echo "Makes executables from PHP sourcecode"
	@echo "Usage: make exe src=source.php"
	@echo ""

.if defined(src)
FILE=${src:S/.php//g}
c:
	@echo "===> Making executable from $(src)"
	@echo "---> Building for $(FILE)"
	$(MAKEEMBED) $(src) > $(FILE).c
<commit_msg>- Move usage<commit_after># Makefile
#
# $Id$

MAKEEMBED=php -q php2cembed.php
PHPLIBDIR?=.
INCLUDEDIR?=/usr/local/include/php
LIBDIR?=/usr/local/lib
INCLUDES=-I$(INCLUDEDIR) -I$(INCLUDEDIR)/main -I$(INCLUDEDIR)/Zend -I$(INCLUDEDIR)/TSRM -I$(INCLUDEDIR)/sapi/embed
LIBDIRS=-L$(LIBDIR)
CC=gcc
CFLAGS=-g -Wall
LIBTOOL=$(SHELL) libtool

all:    usage
usage:
	@echo "Makes executables from PHP sourcecode"
	@echo ""
	@echo "Usage:"
	@echo "- make exe src=source.php"
	@echo "- make exe src=test.php INCLUDEDIR=/usr/src/php PHPLIBDIR=/usr/src/php"
	@echo ""
	@echo "Notes:"
	@echo "- INCLUDEDIR is the directory where PHPs includes are"
	@echo "- PHPLIBDIR is the directory where libphp4.la and libphp4.a reside"
	@echo ""

.if defined(src)
FILE=${src:S/.php//g}
c:
	@echo "===> Making executable from $(src)"
	@echo "---> Building for $(FILE)"
	$(MAKEEMBED) $(src) > $(FILE).c

{'fraction_non_alphanumeric': 0.18031854379977247, 'fraction_numerical': 0.004550625711035267, 'mean_word_length': 4.429012345679013, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1022864', 'n_tokens_mistral': 756, 'n_tokens_neox': 720, 'n_words': 161}