Debian Codegraph @

doc/Makefile

raw
1 # ----------------------------------------------------------------------------
2 # - Makefile -
3 # - afnix doc makefile -
4 # ----------------------------------------------------------------------------
5 # - This program is free software; you can redistribute it and/or modify -
6 # - it provided that this copyright notice is kept intact. -
7 # - -
8 # - This program is distributed in the hope that it will be useful, but -
9 # - without any warranty; without even the implied warranty of -
10 # - merchantability or fitness for a particular purpose. In not event shall -
11 # - the copyright holder be liable for any direct, indirect, incidental or -
12 # - special damages arising in any way out of the use of this software. -
13 # ----------------------------------------------------------------------------
14 # - copyright (c) 1999-2023 amaury darsch -
15 # ----------------------------------------------------------------------------
16
17 TOPDIR = ..
18 MAKDIR = $(TOPDIR)/cnf/mak
19 CONFFILE = $(MAKDIR)/afnix-conf.mak
20 RULEFILE = $(MAKDIR)/afnix-docs.mak
21 include $(CONFFILE)
22
23 # ----------------------------------------------------------------------------
24 # - project configuration -
25 # ----------------------------------------------------------------------------
26
27 DSTDIR = $(BLDDST)/doc
28
29 # ----------------------------------------------------------------------------
30 # - project rules -
31 # ----------------------------------------------------------------------------
32
33 # rule: all
34 # this rule is the default rule which builds the documentation
35
36 all: doc
37 .PHONY: all
38
39 # include: rule.mak
40 # this rule includes the platform dependant rules
41
42 include $(RULEFILE)
43
44 # rule: doc
45 # this rule prepare the documentation
46
47 doc:
48 @${MAKE} -C xml doc
49 .PHONY: doc
50
51 # rule: distri
52 # this rule creates the distribution
53
54 distri:
55 @$(MKDIR) $(DSTDIR)
56 @$(CP) Makefile $(DSTDIR)
57 @${MAKE} -C dtd distri
58 @${MAKE} -C etc distri
59 @${MAKE} -C xml distri
60 .PHONY: distri
61
62 # rule: publish
63 # this rule install the documentation
64
65 publish:
66 @${MAKE} -C etc publish
67 @${MAKE} -C xml publish
68 .PHONY: publish
69
70 # rule: clean
71 # This rule cleans the directories
72
73 clean::
74 @${MAKE} -C dtd clean
75 @${MAKE} -C etc clean
76 @${MAKE} -C xml clean