diff options
author | Sami Kerola <kerolasa@iki.fi> | 2013-05-26 09:30:15 (GMT) |
---|---|---|
committer | Sami Kerola <kerolasa@iki.fi> | 2013-05-26 09:38:11 (GMT) |
commit | 7541054b299bbd61310ab0456cf4f25b7a672de3 (patch) | |
tree | 47878d28304cb560a4f31bc98466a9347e8edb6c /doc | |
parent | 82e300c7bac1542f27668a8d7e234b4dd6ea1211 (diff) | |
download | fluxbox-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.am | 17 | ||||
-rw-r--r-- | doc/Makemodule.am | 39 | ||||
-rw-r--r-- | doc/asciidoc/Makefile | 20 |
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 | |||
4 | CLEANFILES = 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 | ||
6 | MAINTAINERCLEANFILES = Makefile.in | ||
7 | man_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 | ||
10 | EXTRA_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 | ||
13 | distclean-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 @@ | |||
1 | CLEANFILES += \ | ||
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 | |||
13 | dist_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 | |||
25 | EXTRA_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 | ||
5 | SRC1 = fluxbox.txt fluxbox-remote.txt fbrun.txt fbsetbg.txt fbsetroot.txt startfluxbox.txt | 5 | SRC1 = \ |
6 | SRC5 = 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 | |||
13 | SRC5 = \ | ||
14 | fluxbox-apps.txt \ | ||
15 | fluxbox-keys.txt \ | ||
16 | fluxbox-menu.txt \ | ||
17 | fluxbox-style.txt | ||
18 | |||
19 | MAN = \ | ||
20 | $(SRC1:.txt=.1) \ | ||
21 | $(SRC5:.txt=.5) | ||
7 | 22 | ||
8 | MAN = $(SRC1:.txt=.1) $(SRC5:.txt=.5) | ||
9 | MANdotIN = $(addsuffix .in,$(MAN)) | 23 | MANdotIN = $(addsuffix .in,$(MAN)) |
10 | DISTFILES = $(addprefix ../,$(MANdotIN)) | 24 | DISTFILES = $(addprefix ../,$(MANdotIN)) |
11 | 25 | ||