Debian Codegraph @

Makefile

raw symbols SCIP
1 MKPATH=mk/
2 include $(MKPATH)buildsys.mk
3
4 SUBDIRS = src lib
5 CLEAN = *.dll *.exe
6 DISTCLEAN = config.status config.log docs/.deps \
7 mk/buildsys.mk mk/extra.mk
8 REPOCLEAN = aclocal.m4 autom4te.cache configure src/autoconf.h.in version
9
10 .PHONY: tests manual manual-optional dist
11 tests:
12 $(MAKE) -C src tests
13
14 TAG = angband-`cd scripts && ./version.sh`
15 OUT = $(TAG).tar.gz
16
17 all: manual-optional
18
19 manual: manual-optional
20 @if test x"$(SPHINXBUILD)" = x || test x"$(SPHINXBUILD)" = xNOTFOUND ; then \
21 echo "sphinx-build was not found during configuration. If it is not installed, you will have to install it. You can either rerun the configuration or set SPHINXBUILD on the command line when running make to inform make how to run sphinx-build. You may also want to set DOC_HTML_THEME to a builtin Sphinx theme to use instead of what is configured in docs/conf.py. For instance, 'DOC_HTML_THEME=classic'." ; \
22 exit 1 ; \
23 fi
24
25 manual-optional:
26 @if test ! x"$(SPHINXBUILD)" = x && test ! x"$(SPHINXBUILD)" = xNOTFOUND ; then \
27 env DOC_HTML_THEME="$(DOC_HTML_THEME)" $(MAKE) -C docs SPHINXBUILD="$(SPHINXBUILD)" html ; \
28 fi
29
30 dist:
31 git checkout-index --prefix=$(TAG)/ -a
32 scripts/version.sh > $(TAG)/version
33 $(TAG)/autogen.sh
34 rm -rf $(TAG)/autogen.sh $(TAG)/autom4te.cache
35 tar --exclude .gitignore --exclude *.dll --exclude .github \
36 --exclude .travis.yml -czvf $(OUT) $(TAG)
37 rm -rf $(TAG)
38
39 # If this isn't a --with-no-install build, build and install the documentation
40 # if sphinx-build is available.
41 install-extra:
42 @if test x"$(NOINSTALL)" != xyes && test ! x"$(SPHINXBUILD)" = x && test ! x"$(SPHINXBUILD)" = xNOTFOUND ; then \
43 for x in `find docs/_build/html -mindepth 1 \! -type d \! -name .buildinfo -print`; do \
44 i=`echo $$x | sed -e s%^docs/_build/html/%%`; \
45 ${INSTALL_STATUS}; \
46 if ${MKDIR_P} $$(dirname ${DESTDIR}${docdatadir}/$$i) && ${INSTALL} -m 644 $$x ${DESTDIR}${docdatadir}/$$i; then \
47 ${INSTALL_OK}; \
48 else \
49 ${INSTALL_FAILED}; \
50 fi \
51 done \
52 fi
53
54 # Hack to clean up in docs since it isn't included in SUBDIRS.
55 pre-clean:
56 @if test ! x"$(SPHINXBUILD)" = x && test ! x"$(SPHINXBUILD)" = xNOTFOUND ; then \
57 $(MAKE) -C docs SPHINXBUILD="$(SPHINXBUILD)" clean ; \
58 fi
59
60 # Hack to clean up test results in tests.
61 pre-distclean:
62 @find tests -name run.out -exec rm {} \;
63
64 # Remove the files generated by autogen.sh and the version stamp file.
65 # In general, this should not be used when working with a distributed
66 # source archive (.tar.gz) since those archives do not include autogen.sh for
67 # rebuilding the configure script.
68 repoclean: distclean
69 for i in "" $(REPOCLEAN) ; do \
70 test x"$$i" = x"" && continue; \
71 if test -d "$$i" || test -f "$$i" ; then rm -rf "$$i" ; fi \
72 done