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 /nls | |
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 'nls')
-rw-r--r-- | nls/Makefile.am | 24 | ||||
-rw-r--r-- | nls/Makemodule.am | 53 |
2 files changed, 53 insertions, 24 deletions
diff --git a/nls/Makefile.am b/nls/Makefile.am deleted file mode 100644 index e3595dc..0000000 --- a/nls/Makefile.am +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | # nls/Makefile.am for fluxbox - http://fluxbox.org | ||
2 | |||
3 | LOCALE_PATH = @LOCALE_PATH@ | ||
4 | NLSTEST = @NLS@ | ||
5 | SUBDIRS = C cs_CZ da_DK es_AR es_ES et_EE fr_FR pt_BR ru_RU \ | ||
6 | sv_SE tr_TR it_IT pt_PT bg_BG ja_JP ko_KR \ | ||
7 | lv_LV de_DE nl_NL no_NO sl_SI pl_PL vi_VN be_BY \ | ||
8 | uk_UA el_GR nb_NO zh_CN fi_FI en_US en_GB de_CH \ | ||
9 | de_AT fr_CH sk_SK zh_TW mk_MK he_IL | ||
10 | |||
11 | MAINTAINERCLEANFILES = Makefile.in fluxbox-nls.hh | ||
12 | EXTRA_DIST=fluxbox-nls.hh nlsinfo | ||
13 | BUILT_SOURCES=fluxbox-nls.hh | ||
14 | |||
15 | uninstall-local: | ||
16 | @if test x$(NLSTEST) = "x-DNLS"; then \ | ||
17 | rmdir $(DESTDIR)$(LOCALE_PATH); \ | ||
18 | fi | ||
19 | distclean-local: | ||
20 | rm -f *\~ | ||
21 | |||
22 | fluxbox-nls.hh: | ||
23 | chmod +x $(srcdir)/nlsinfo | ||
24 | $(srcdir)/nlsinfo -H -N FBNLS $(top_srcdir)/src $(top_srcdir)/util > fluxbox-nls.hh | ||
diff --git a/nls/Makemodule.am b/nls/Makemodule.am new file mode 100644 index 0000000..77962c7 --- /dev/null +++ b/nls/Makemodule.am | |||
@@ -0,0 +1,53 @@ | |||
1 | # nls/Makefile.am for fluxbox - http://fluxbox.org | ||
2 | |||
3 | LOCALE_PATH = @LOCALE_PATH@ | ||
4 | NLSTEST = @NLS@ | ||
5 | |||
6 | SUBDIRS = \ | ||
7 | nls/C \ | ||
8 | nls/be_BY \ | ||
9 | nls/bg_BG \ | ||
10 | nls/cs_CZ \ | ||
11 | nls/da_DK \ | ||
12 | nls/de_AT \ | ||
13 | nls/de_CH \ | ||
14 | nls/de_DE \ | ||
15 | nls/el_GR \ | ||
16 | nls/en_GB \ | ||
17 | nls/en_US \ | ||
18 | nls/es_AR \ | ||
19 | nls/es_ES \ | ||
20 | nls/et_EE \ | ||
21 | nls/fi_FI \ | ||
22 | nls/fr_CH \ | ||
23 | nls/fr_FR \ | ||
24 | nls/he_IL \ | ||
25 | nls/it_IT \ | ||
26 | nls/ja_JP \ | ||
27 | nls/ko_KR \ | ||
28 | nls/lv_LV \ | ||
29 | nls/mk_MK \ | ||
30 | nls/nb_NO \ | ||
31 | nls/nl_NL \ | ||
32 | nls/no_NO \ | ||
33 | nls/pl_PL \ | ||
34 | nls/pt_BR \ | ||
35 | nls/pt_PT \ | ||
36 | nls/ru_RU \ | ||
37 | nls/sk_SK \ | ||
38 | nls/sl_SI \ | ||
39 | nls/sv_SE \ | ||
40 | nls/tr_TR \ | ||
41 | nls/uk_UA \ | ||
42 | nls/vi_VN \ | ||
43 | nls/zh_CN \ | ||
44 | nls/zh_TW | ||
45 | |||
46 | uninstall-local: | ||
47 | @if test x$(NLSTEST) = "x-DNLS"; then \ | ||
48 | rmdir $(DESTDIR)$(LOCALE_PATH); \ | ||
49 | fi | ||
50 | |||
51 | fluxbox-nls.hh: | ||
52 | chmod +x $(srcdir)/nlsinfo | ||
53 | $(srcdir)/nlsinfo -H -N FBNLS $(top_srcdir)/src $(top_srcdir)/util > fluxbox-nls.hh | ||