summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2014-10-10 21:08:11 +0200
committerAlexander Shorin <kxepal@apache.org>2014-12-10 14:07:01 +0300
commit72cc66fe139fc149ced05b3911b8970d695e67a4 (patch)
tree2e5d4ba7c49dd2f8f7784ed19b06d3d05199609a
parent78f367cfaf4c8dccdab60535f01833181a462a7f (diff)
downloadcouchdb-72cc66fe139fc149ced05b3911b8970d695e67a4.tar.gz
Add Fauxton build process to Makefile
`make` alone now builds Fauxton along with the rest. `make fauxton` to only do the fauxton build. `make distclean` cleans the Fauxton build. Fauxton is deployed into share/www. `make distclean` simply removes share/www. If share/www exists, `make [fauxton]` skips building Fauxton. Includes a letter for Noah ;)
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 986d2dc95..3d6ccbf2a 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ config.erl:
@echo
@false
-compile: config.erl
+compile: config.erl fauxton
@rebar compile
@cp src/couch/priv/couchjs bin/
@@ -34,6 +34,7 @@ dist: compile
distclean: clean
@rm -rf rel/couchdb
+ @rm -rf share/www
devclean:
@rm -rf dev/lib/*/data
@@ -69,3 +70,7 @@ eunit: compile
javascript: compile
@dev/run -q test/javascript/run
+
+fauxton:
+# This next line so Noah throws his arms up in dispair and teaches me proper Make again -- Love, Jan
+ @if [ ! -d share/www ]; then echo "Building Fauxton" && cd src/fauxton && npm install && grunt couchdb; fi