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.
This commit is contained in:
Matei Zaharia 2010-10-16 21:51:25 -07:00
Родитель 023ed194b4
Коммит e5fb280ec8
4 изменённых файлов: 10 добавлений и 3 удалений

Просмотреть файл

@ -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

Просмотреть файл

Просмотреть файл

Просмотреть файл