-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
38 lines (26 loc) · 1 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
PREFIX ?= `pwd`/install
docdir = ${PREFIX}/share/doc/gnatdoc
SCENARIO_VARIABLES=-XGPR_UNIT_PROVIDER_LIBRARY_TYPE=static -XGPR_UNIT_PROVIDER_BUILD=debug -XVSS_LIBRARY_TYPE=static -XMARKDOWN_LIBRARY_TYPE=static
all: build-gnatdoc
build-all: build-libgnatdoc build-gnatdoc build-tests
build-libgnatdoc:
gprbuild -j0 -p -P gnat/libgnatdoc.gpr
build-gnatdoc:
gprbuild -j0 -p -P gnat/gnatdoc.gpr ${SCENARIO_VARIABLES}
clean:
rm -rf .objs bin
build-tests:
gprbuild -j0 -p -P gnat/tests/test_drivers.gpr ${SCENARIO_VARIABLES}
check: build-tests check_extractor check_gnatdoc
check_extractor:
make -C testsuite
check_gnatdoc:
make -C testsuite/gnatdoc.RB16-013.gpr_tool
build-documentation:
make -C documentation/users_guide html latexpdf
install-documentation: build-documentation
mkdir -p $(docdir)/html
mkdir -p $(docdir)/html/users_guide
mkdir -p $(docdir)/pdf
cp -r documentation/users_guide/_build/html/* $(docdir)/html/users_guide
cp documentation/users_guide/_build/latex/gnatdoc_ug.pdf $(docdir)/pdf