aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSami Kerola <kerolasa@iki.fi>2013-05-26 09:30:15 (GMT)
committerSami Kerola <kerolasa@iki.fi>2013-05-26 09:38:11 (GMT)
commit7541054b299bbd61310ab0456cf4f25b7a672de3 (patch)
tree47878d28304cb560a4f31bc98466a9347e8edb6c /doc
parent82e300c7bac1542f27668a8d7e234b4dd6ea1211 (diff)
downloadfluxbox-7541054b299bbd61310ab0456cf4f25b7a672de3.zip
fluxbox-7541054b299bbd61310ab0456cf4f25b7a672de3.tar.bz2
build-sys: move to non-recursive build
This rather large change will attempts to make 'make' to work better. See excellent paper 'Recursive Make Considered Harmful' by Peter Miller for further explanation why several make files is worse than one for whole project. Note. The tests are build with 'make check' rather than defining TEST. Reference: http://miller.emu.id.au/pmiller/books/rmch/ Reference: http://karelzak.blogspot.co.uk/2013/02/non-recursive-automake.html
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am17
-rw-r--r--doc/Makemodule.am39
-rw-r--r--doc/asciidoc/Makefile20
3 files changed, 56 insertions, 20 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
deleted file mode 100644
index 008e318..0000000
--- a/doc/Makefile.am
+++ /dev/null
@@ -1,17 +0,0 @@
1# doc/Makefile.am for Fluxbox 0.9 - an X11 Window manager
2# Makefile.am for fluxbox/doc
3
4CLEANFILES = fluxbox.1 fbrun.1 fbsetbg.1 fbsetroot.1 startfluxbox.1 fluxbox-apps.5 \
5 fluxbox-keys.5 fluxbox-menu.5 fluxbox-remote.1 fluxbox-style.5
6MAINTAINERCLEANFILES = Makefile.in
7man_MANS = fluxbox.1 fbrun.1 fbsetbg.1 fbsetroot.1 fluxbox-apps.5 \
8 fluxbox-keys.5 fluxbox-menu.5 fluxbox-remote.1 fluxbox-style.5 \
9 startfluxbox.1
10EXTRA_DIST=startfluxbox.1.in CODESTYLE \
11 fluxbox.1.in fbrun.1.in fbsetbg.1.in fbsetroot.1.in fluxbox-apps.5.in \
12 fluxbox-keys.5.in fluxbox-menu.5.in fluxbox-remote.1.in fluxbox-style.5.in
13distclean-local:
14 rm -f *\~
15
16%: %.in
17 @regex_cmd@ -e "s,@pkgdatadir@,$(pkgdatadir)," $^ > $@
diff --git a/doc/Makemodule.am b/doc/Makemodule.am
new file mode 100644
index 0000000..240f5c7
--- /dev/null
+++ b/doc/Makemodule.am
@@ -0,0 +1,39 @@
1CLEANFILES += \
2 doc/fbrun.1 \
3 doc/fbsetbg.1 \
4 doc/fbsetroot.1 \
5 doc/fluxbox-apps.5 \
6 doc/fluxbox-keys.5 \
7 doc/fluxbox-menu.5 \
8 doc/fluxbox-remote.1 \
9 doc/fluxbox-style.5 \
10 doc/fluxbox.1 \
11 doc/startfluxbox.1
12
13dist_man_MANS = \
14 doc/fbrun.1 \
15 doc/fbsetbg.1 \
16 doc/fbsetroot.1 \
17 doc/fluxbox-apps.5 \
18 doc/fluxbox-keys.5 \
19 doc/fluxbox-menu.5 \
20 doc/fluxbox-remote.1 \
21 doc/fluxbox-style.5 \
22 doc/fluxbox.1 \
23 doc/startfluxbox.1
24
25EXTRA_DIST += \
26 doc/CODESTYLE \
27 doc/fbrun.1.in \
28 doc/fbsetbg.1.in \
29 doc/fbsetroot.1.in \
30 doc/fluxbox-apps.5.in \
31 doc/fluxbox-keys.5.in \
32 doc/fluxbox-menu.5.in \
33 doc/fluxbox-remote.1.in \
34 doc/fluxbox-style.5.in \
35 doc/fluxbox.1.in \
36 doc/startfluxbox.1.in
37
38%: %.in
39 @regex_cmd@ -e "s,@pkgdatadir[@],$(pkgdatadir)," $^ > $@
diff --git a/doc/asciidoc/Makefile b/doc/asciidoc/Makefile
index 666d437..0e084e8 100644
--- a/doc/asciidoc/Makefile
+++ b/doc/asciidoc/Makefile
@@ -2,10 +2,24 @@
2# create manpages from the asciidoc files 2# create manpages from the asciidoc files
3# 3#
4 4
5SRC1 = fluxbox.txt fluxbox-remote.txt fbrun.txt fbsetbg.txt fbsetroot.txt startfluxbox.txt 5SRC1 = \
6SRC5 = fluxbox-keys.txt fluxbox-apps.txt fluxbox-style.txt fluxbox-menu.txt 6 fbrun.txt \
7 fbsetbg.txt \
8 fbsetroot.txt \
9 fluxbox-remote.txt \
10 fluxbox.txt \
11 startfluxbox.txt
12
13SRC5 = \
14 fluxbox-apps.txt \
15 fluxbox-keys.txt \
16 fluxbox-menu.txt \
17 fluxbox-style.txt
18
19MAN = \
20 $(SRC1:.txt=.1) \
21 $(SRC5:.txt=.5)
7 22
8MAN = $(SRC1:.txt=.1) $(SRC5:.txt=.5)
9MANdotIN = $(addsuffix .in,$(MAN)) 23MANdotIN = $(addsuffix .in,$(MAN))
10DISTFILES = $(addprefix ../,$(MANdotIN)) 24DISTFILES = $(addprefix ../,$(MANdotIN))
11 25