1# Copyright (c) 2011, Couchbase, Inc.
2# All rights reserved.
3
4# Note: This Makefile is provided as a convenience wrapper to CMake,
5# which is the build tool used for configuring this project. Please do
6# not make any substantive changes only in this file or in the
7# top-level "configure" script, as the normal process of building
8# Couchbase server uses only CMake.
9
10SHELL=/bin/sh
11
12ifneq (,$(wildcard build))
13all:
14	cd build && $(MAKE) --no-print-directory all
15
16fail-unless-configured:
17	@true
18
19else
20all fail-unless-configured:
21	@echo
22	@echo "you need to run ./configure with --prefix option to be able to run ns_server"
23	@echo
24	@false
25endif
26
27
28.PHONY: test ui_test docs
29
30clean clean_all:
31	cd build && $(MAKE) --no-print-directory clean ns_realclean
32
33install:
34	cd build && $(MAKE) --no-print-directory $@
35
36dataclean distclean test ui_test docs dialyzer dialyzer_obsessive:
37	cd build && $(MAKE) --no-print-directory ns_$@
38
39minify:
40	cd build/deps/gocode && $(MAKE) --no-print-directory ns_minify/fast
41
42# assuming exuberant-ctags
43TAGS:
44	ctags -eR .
45