forked from yahoo/mdbm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (39 loc) · 1.83 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
41
42
43
44
45
46
47
48
49
50
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
# have to use PREFIX here so we can install into PREFIX/lib64 instead of PREFIX/lib
(cd src/perl; $(PERL) Makefile.PL INSTALLDIRS=vendor PREFIX=$(PERL_PREFIX) && $(MAKE) && $(MAKE) test)
all: default perl doc
install-all: all install doc-install perl-install
@echo ===================== removing $(PERL_PREFIX)/lib/perl5/x86_64-linux-thread-multi/perllocal.pod
rm -f $(PERL_PREFIX)/lib/perl5/x86_64-linux-thread-multi/perllocal.pod
doc-install:
$(MAKE) -C gendoc install
perl-install:
$(MAKE) -C src/perl install
rm -f $(PERL_PREFIX)/lib/perl5/x86_64-linux-thread-multi/perllocal.pod
clean::
$(MAKE) -C src/perl clean || $(TRUECMD)
$(MAKE) -C gendoc clean
rm -f src/perl/Makefile.old
rm -rf src/perl/object