forked from yahoo/mdbm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (31 loc) · 1.37 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
TOPDIR=$(shell pwd)
include $(TOPDIR)/Makefile.base
SUBDIRS=src include
help:
@echo "Without any target, the library, tools, and tests will be built."
@echo "The following additional makefile targets are supported:"
@echo ""
@echo " help - display this help message"
@echo " clean - cleans up object and intermediate files for library, tools, and tests"
@echo " all - builds library, tools, tests, documentation, and perl wrapper"
@echo " doc - builds doxygen and Restructured Text (via python-Sphinx)"
@echo " perl - builds the perl wrapper"
@echo " install - installs the library and tools"
@echo " test - runs the unit, functional and smoke tests"
@echo " test-fast - runs the tests, skipping slow tests"
@echo " valg - runs the tests under valgrind"
@echo " profile - builds profile versions of the library, tools, and tests"
@echo " test-prof - runs profile versions of the tests"
@echo " echo_<name> - for makefile debugging, prints <name> = <value_of_name>"
@echo " value_<name> - for makefile debugging, prints <value_of_name>"
doc:
make -C gendoc
perl: default
(cd src/perl; $(PERL) Makefile.PL INSTALL_BASE=$(PERL_PREFIX) && make && make test)
all: default perl doc
install-all: all install
make -C gendoc install
make -C src/perl install
clean::
make -C src/perl clean || /bin/true
make -C gendoc clean