%{header_in} %{commands_in} # Library targets STATIC_LIB = %{out_dir}/$(LIBNAME).%{static_suffix} LIBRARIES = $(STATIC_LIB) # File Lists INCLUDE_DIR = %{botan_include_dir} LIBOBJS = %{lib_objs} APPOBJS = %{app_objs} TESTOBJS = %{test_objs} # Build Commands %{lib_build_cmds} %{app_build_cmds} %{test_build_cmds} # Link Commands %{dso_in} $(APP): $(LIBRARIES) $(APPOBJS) $(CXX) $(LDFLAGS) $(APPOBJS) -L%{out_dir} -l%{libname} $(APP_LINKS_TO) -o $(APP) $(TEST): $(LIBRARIES) $(TESTOBJS) $(CXX) $(LDFLAGS) $(TESTOBJS) -L%{out_dir} -l%{libname} $(TEST_LINKS_TO) -o $(TEST) $(STATIC_LIB): $(LIBOBJS) $(RM) $(STATIC_LIB) $(AR) $(STATIC_LIB) $(LIBOBJS) $(RANLIB) $(STATIC_LIB) %{coverage_in} SPHINX_CONFIG = %{sphinx_config_dir} SPHINX_OPTS = -b html WEBSITE_DIR=%{doc_output_dir}/website WEBSITE_SRC_DIR=%{doc_output_dir}/website-src .PHONY = clean distclean docs website install valgrind clean: $(RM) %{libobj_dir}/* %{testobj_dir}/* %{appobj_dir}/* $(RM) $(LIBRARIES) $(SYMLINK) $(SONAME) $(APP) $(TEST) distclean: clean $(RM) Makefile $(RM_R) %{build_dir} $(RM) botan_all.cpp botan_all.h valgrind: valgrind --log-file=botan.%%p.log -v --track-origins=yes --leak-check=full --show-reachable=yes ./botan-test docs: %{build_doc_commands} install: $(APP) docs $(SCRIPTS_DIR)/install.py --destdir=%{destdir} --bindir=%{bindir} --libdir=%{libdir} --docdir=%{docdir} --includedir=%{includedir} website: rm -rf $(WEBSITE_SRC_DIR) $(WEBSITE_DIR) mkdir -p $(WEBSITE_SRC_DIR) cp -r %{doc_dir}/*.txt %{doc_dir}/*.rst %{doc_dir}/relnotes %{doc_dir}/website/*.rst $(WEBSITE_SRC_DIR) ./src/scripts/combine_relnotes.py %{doc_dir}/relnotes > $(WEBSITE_SRC_DIR)/news.rst sphinx-build -c $(SPHINX_CONFIG) -b html $(WEBSITE_SRC_DIR) $(WEBSITE_DIR) sphinx-build -c $(SPHINX_CONFIG) -b html %{doc_dir}/manual $(WEBSITE_DIR)/manual rm -rf $(WEBSITE_DIR)/.doctrees rm -rf $(WEBSITE_DIR)/manual/.doctrees rm -f $(WEBSITE_DIR)/.buildinfo rm -f $(WEBSITE_DIR)/manual/.buildinfo doxygen %{build_dir}/botan.doxy mv %{doc_output_dir}/doxygen $(WEBSITE_DIR)/doxygen