Skip to content
Snippets Groups Projects
Commit e5fb280e authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Changed the config files that were included in git to templates which

are used to create an initial copy of each config file if the user does
not have one. This way, users won't accidentally commit their changes to
config files to git.
parent 023ed194
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,9 @@ else
COMPILER = $(SCALA_HOME)/bin/$(COMPILER_NAME)
endif
all: scala java
CONF_FILES = conf/spark-env.sh conf/log4j.properties conf/java-opts
all: scala java conf-files
build/classes:
mkdir -p build/classes
......@@ -50,7 +52,7 @@ native: java
jar: build/spark.jar build/spark-dep.jar
depjar: build/spark-dep.jar
dep-jar: build/spark-dep.jar
build/spark.jar: scala java
jar cf build/spark.jar -C build/classes spark
......@@ -60,6 +62,11 @@ build/spark-dep.jar:
cd build/dep && for i in $(JARS); do jar xf ../../$$i; done
jar cf build/spark-dep.jar -C build/dep .
conf-files: $(CONF_FILES)
$(CONF_FILES): %: %.template
if [ ! -e $@ ] ; then cp $^ $@; else touch $^; fi
test: all
./alltests
......@@ -69,4 +76,4 @@ clean:
$(MAKE) -C src/native clean
rm -rf build
.phony: default all clean scala java native jar depjar
.phony: default all clean scala java native jar dep-jar conf-files
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment