Fix for building docs.
[awesomized/libmemcached] / GNUmakefile
1 # vim:ft=make
2 #
3 _bootstrap_Makefile := $(wildcard [M]akefile)
4 _bootstrap_config-status := $(wildcard config.status)
5
6 ALL_RECURSIVE_TARGETS=
7
8 ifneq ($(_bootstrap_Makefile),)
9 include Makefile
10 else
11 ifneq ($(_bt_config-status),)
12 $(srcdir)/config.status
13 $(MAKE) $(AM_MAKEFLAGS) configure
14 endif
15
16 .DEFAULT_GOAL:= basic_build
17 srcdir= .
18
19 configure: bootstrap.sh
20 @$(srcdir)/bootstrap.sh -a
21
22 Makefile: configure
23 @$(srcdir)/bootstrap.sh -c
24
25 .PHONY: basic_build
26 basic_build: Makefile
27 @$(MAKE) $(AM_MAKEFLAGS)
28 endif
29
30 ALL_RECURSIVE_TARGETS+= $(AM_RECURSIVE_TARGETS)
31
32 ifneq ($(word 2, $(MAKECMDGOALS)), )
33 ifneq ($(filter $(ALL_RECURSIVE_TARGETS), $(MAKECMDGOALS)), )
34 .NOTPARALLEL:
35 endif
36 endif