diff options
author | Jan Lehnardt <jan@apache.org> | 2014-10-10 21:08:11 +0200 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2014-11-14 18:22:31 +0100 |
commit | 8e2a6b42661f473674f7ed731868d109f4d0495a (patch) | |
tree | d2626d8ae6765d860364bcfb6225f0397a58cc72 | |
parent | 4b24def65c79ebf72fa3349e1da3719c8e633495 (diff) | |
download | couchdb-8e2a6b42661f473674f7ed731868d109f4d0495a.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-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 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 |