Debian Codegraph @

cmake/tribits/doc/build_ref/Makefile

raw
1 ##---------------------------------------------------------------------------##
2 ## MAKEFILE
3 ##---------------------------------------------------------------------------##
4
5 EXTRA_ARGS=
6
7 .PHONY: clean realclean all
8
9 BASE_NAME = TribitsBuildReference
10 EXTRA_FILES = \
11 Makefile \
12 TribitsBuildReferenceBody.rst \
13 TribitsBuildReferenceTemplate.rst
14
15 # NOTE: We *don't* want to rebuild the file if only the version has changed we
16 # don't add a dependency on TribitsGitVersion.txt!
17
18 CREATE_PROJECT_BUILD_REF_CMND = \
19 ./create-project-build-ref.py \
20 --project-name="<Project>" \
21 --project-template-file=TribitsBuildReferenceTemplate.rst \
22 --file-base=TribitsBuildReference
23
24 all: $(EXTRA_FILES)
25 $(CREATE_PROJECT_BUILD_REF_CMND) \
26 $(EXTRA_ARGS)
27
28 $(BASE_NAME).rst: $(EXTRA_FILES)
29 $(CREATE_PROJECT_BUILD_REF_CMND) \
30 --generate-html= --generate-latex= --generate-pdf= \
31 $(EXTRA_ARGS)
32
33 clean:
34 -rm -f $(BASE_NAME).rst
35 -rm -f $(BASE_NAME).html
36 -rm -f $(BASE_NAME).pdf
37
38 ##---------------------------------------------------------------------------##
39 ## end of Makefile
40 ##---------------------------------------------------------------------------##