diff options
author | Matei Zaharia <matei@eecs.berkeley.edu> | 2010-10-16 21:51:25 -0700 |
---|---|---|
committer | Matei Zaharia <matei@eecs.berkeley.edu> | 2010-10-16 21:51:25 -0700 |
commit | e5fb280ec82072fdd3373136a41f96c9536a1592 (patch) | |
tree | 5649dec7c04607212c76232719bde9ca680391f1 /Makefile | |
parent | 023ed194b465b1ada80be1ef0deea0da99ce109e (diff) | |
download | spark-e5fb280ec82072fdd3373136a41f96c9536a1592.tar.gz spark-e5fb280ec82072fdd3373136a41f96c9536a1592.tar.bz2 spark-e5fb280ec82072fdd3373136a41f96c9536a1592.zip |
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.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 |