<commit_before>#
# Makefile for LuaJava Linux Distribution
#

#
# Change this to reflect your setting.
#
#JDK     = C:\j2sdk1.4.1_01
JDK	= $(JAVA_HOME)

LUA5=/home/t/tecgraf/lib/lua5
LUA5INC=$(LUA5)/include
LUA5LIB=$(LUA5)/lib/Linux24

CC=/usr/bin/gcc

#
# Other variables.
#
VERSION	= 1.0b4
LUAJAVA_JAR	= luajava-$(VERSION).jar
LUAJAVA_SO	= libluajava-$(VERSION).so
TAR_FILE= luajava-$(VERSION).tar.gz
ZIP_FILE= luajava-$(VERSION).zip

CLASSES     = \
	src/java/org/keplerproject/luajava/CPtr.class \
	src/java/org/keplerproject/luajava/JavaFunction.class \
	src/java/org/keplerproject/luajava/LuaException.class \
	src/java/org/keplerproject/luajava/LuaInvocationHandler.class \
	src/java/org/keplerproject/luajava/LuaJavaAPI.class \
	src/java/org/keplerproject/luajava/LuaObject.class \
	src/java/org/keplerproject/luajava/LuaState.class \
	src/java/org/keplerproject/luajava/LuaStateFactory.class \
	src/java/org/keplerproject/luajava/Console.class

DOC_CLASSES	= \
	src/java/org/keplerproject/luajava/JavaFunction.java \
	src/java/org/keplerproject/luajava/LuaException.java \
	src/java/org/keplerproject/luajava/LuaInvocationHandler.java \
	src/java/org/keplerproject/luajava/LuaObject.java \
	src/java/org/keplerproject/luajava/LuaState.java \
	src/java/org/keplerproject/luajava/LuaStateFactory.java \
	src/java/org/keplerproject/luajava/Console.java

OBJS        = src/c/luajava.o
CFLAGS      = -I$(JDK)/include -I$(JDK)/include/linux -I$(LUA5INC)
.SUFFIXES: .java .class

#
# Targets
#
run: build
	@echo ------------------
	@echo Build Complete
	@echo ------------------

build: checkjdk $(LUAJAVA_JAR) apidoc $(LUAJAVA_SO)

#
# Build .class files.
#
.java.class:
	$(JDK)/bin/javac src/java/org/keplerproject/luajava/*.java
	
#
# Create the JAR
#
$(LUAJAVA_JAR): $(CLASSES)
	cd src/java; \
	$(JDK)/bin/jar cvf ../../$(LUAJAVA_JAR) org/keplerproject/luajava/*.class; \
	cd ../..;
  
#
# Create the API Documentation
#
apidoc:
	$(JDK)/bin/javadoc -public -classpath src/java/ -quiet -d "doc/API" $(DOC_CLASSES)

#
# Build .c files.
#
$(LUAJAVA_SO): $(OBJS)
	$(CC) -shared -o$@ $? $(LUA5LIB)/liblua5.a $(LUA5LIB)/liblualib5.a

src/c/luajava.c: src/c/luajava.h

src/c/luajava.h:
	$(JDK)/bin/javah -o src/c/luajava.h -classpath "$(LUAJAVA_JAR)" org.keplerproject.luajava.LuaState
  

## regras implicitas para compilacao

$(OBJDIR)/%.o:  %.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# Check that the user has a valid JDK install.  This will cause a
# premature death if JDK is not defined.
#
checkjdk: $(JDK)/bin/java

#
# Cleanliness.
#
clean:
	rm -f $(LUAJAVA_JAR)
	rm -f $(LUAJAVA_SO)
	rm -rf doc/API
	rm -f src/java/org/keplerproject/luajava/*.class src/c/*.o src/c/luajava.h
	rm -f $(TAR_FILE) $(ZIP_FILE)

dist:
	tar -czf $(TAR_FILE) --exclude \*CVS\* --exclude $(TAR_FILE) --exclude $(ZIP_FILE) .
	zip -lqr luajava-1.0b4.zip ./* -x ./\*CVS\* ./$(TAR_FILE) ./$(ZIP_FILE)<commit_msg>Correcao na geracao do .zip (nao trocar LF por CR para nao alterar imagens).<commit_after>#
# Makefile for LuaJava Linux Distribution
#

#
# Change this to reflect your setting.
#
#JDK     = C:\j2sdk1.4.1_01
JDK	= $(JAVA_HOME)

LUA5=/home/t/tecgraf/lib/lua5
LUA5INC=$(LUA5)/include
LUA5LIB=$(LUA5)/lib/Linux24

CC=/usr/bin/gcc

#
# Other variables.
#
VERSION	= 1.0b4
LUAJAVA_JAR	= luajava-$(VERSION).jar
LUAJAVA_SO	= libluajava-$(VERSION).so
TAR_FILE= luajava-$(VERSION).tar.gz
ZIP_FILE= luajava-$(VERSION).zip

CLASSES     = \
	src/java/org/keplerproject/luajava/CPtr.class \
	src/java/org/keplerproject/luajava/JavaFunction.class \
	src/java/org/keplerproject/luajava/LuaException.class \
	src/java/org/keplerproject/luajava/LuaInvocationHandler.class \
	src/java/org/keplerproject/luajava/LuaJavaAPI.class \
	src/java/org/keplerproject/luajava/LuaObject.class \
	src/java/org/keplerproject/luajava/LuaState.class \
	src/java/org/keplerproject/luajava/LuaStateFactory.class \
	src/java/org/keplerproject/luajava/Console.class

DOC_CLASSES	= \
	src/java/org/keplerproject/luajava/JavaFunction.java \
	src/java/org/keplerproject/luajava/LuaException.java \
	src/java/org/keplerproject/luajava/LuaInvocationHandler.java \
	src/java/org/keplerproject/luajava/LuaObject.java \
	src/java/org/keplerproject/luajava/LuaState.java \
	src/java/org/keplerproject/luajava/LuaStateFactory.java \
	src/java/org/keplerproject/luajava/Console.java

OBJS        = src/c/luajava.o
CFLAGS      = -I$(JDK)/include -I$(JDK)/include/linux -I$(LUA5INC)
.SUFFIXES: .java .class

#
# Targets
#
run: build
	@echo ------------------
	@echo Build Complete
	@echo ------------------

build: checkjdk $(LUAJAVA_JAR) apidoc $(LUAJAVA_SO)

#
# Build .class files.
#
.java.class:
	$(JDK)/bin/javac src/java/org/keplerproject/luajava/*.java
	
#
# Create the JAR
#
$(LUAJAVA_JAR): $(CLASSES)
	cd src/java; \
	$(JDK)/bin/jar cvf ../../$(LUAJAVA_JAR) org/keplerproject/luajava/*.class; \
	cd ../..;
  
#
# Create the API Documentation
#
apidoc:
	$(JDK)/bin/javadoc -public -classpath src/java/ -quiet -d "doc/API" $(DOC_CLASSES)

#
# Build .c files.
#
$(LUAJAVA_SO): $(OBJS)
	$(CC) -shared -o$@ $? $(LUA5LIB)/liblua5.a $(LUA5LIB)/liblualib5.a

src/c/luajava.c: src/c/luajava.h

src/c/luajava.h:
	$(JDK)/bin/javah -o src/c/luajava.h -classpath "$(LUAJAVA_JAR)" org.keplerproject.luajava.LuaState
  

## regras implicitas para compilacao

$(OBJDIR)/%.o:  %.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# Check that the user has a valid JDK install.  This will cause a
# premature death if JDK is not defined.
#
checkjdk: $(JDK)/bin/java

#
# Cleanliness.
#
clean:
	rm -f $(LUAJAVA_JAR)
	rm -f $(LUAJAVA_SO)
	rm -rf doc/API
	rm -f src/java/org/keplerproject/luajava/*.class src/c/*.o src/c/luajava.h
	rm -f $(TAR_FILE) $(ZIP_FILE)

dist:
	tar -czf $(TAR_FILE) --exclude \*CVS\* --exclude $(TAR_FILE) --exclude $(ZIP_FILE) .
	zip -qr luajava-1.0b4.zip ./* -x ./\*CVS\* ./$(TAR_FILE) ./$(ZIP_FILE)
{'fraction_non_alphanumeric': 0.17873070325900514, 'fraction_numerical': 0.008576329331046312, 'mean_word_length': 3.464777947932619, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2413277', 'n_tokens_mistral': 2661, 'n_tokens_neox': 2535, 'n_words': 394}