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_ - for makefile debugging, prints = " @echo " value_ - for makefile debugging, prints " 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