doc: do not install translated man pages if the language was not enabled in LINGUAS
[wmaker-crm.git] / doc / Makefile.am
bloba79d68cf65b53d7a46a9cdc9834e036320c9804d
1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = build @MANLANGDIRS@
4 DIST_SUBDIRS = build cs ru sk
6 dist_man_MANS = \
7         geticonset.1 \
8         getstyle.1 \
9         get-wings-flags.1 \
10         get-wraster-flags.1 \
11         get-wutil-flags.1 \
12         seticons.1 \
13         setstyle.1 \
14         upgrade-windowmaker-defaults.8 \
15         wdread.1 \
16         wdwrite.1 \
17         WindowMaker.1 \
18         wmagnify.1 \
19         wmgenmenu.1 \
20         wmmenugen.1 \
21         WPrefs.1 \
22         wxcopy.1 \
23         wxpaste.1
25 man_MANS = \
26         wmaker.1 \
27         wmsetbg.1
29 MOSTLYCLEANFILES = wmaker.1 wmsetbg.1
31 EXTRA_DIST = wmaker.in wmsetbg.in
33 wmaker.1: wmaker.in Makefile $(top_builddir)/config.h
34         $(AM_V_GEN)$(top_srcdir)/script/replace-ac-keywords.sh \
35                 --header "$(top_builddir)/config.h" --filter "HAVE_INOTIFY" \
36                 --filter "USE_ICCCM_WMREPLACE" \
37                 -D"sysconfdir=$(sysconfdir)" --replace "sysconfdir" \
38                 -D"pkgdatadir=$(pkgdatadir)" --replace "pkgdatadir" \
39                 -o "wmaker.1"  "$(srcdir)/wmaker.in"
41 wmsetbg.1: wmsetbg.in Makefile $(top_builddir)/config.h
42         $(AM_V_GEN)$(top_srcdir)/script/replace-ac-keywords.sh \
43                 --header "$(top_builddir)/config.h" --filter "USE_XINERAMA" \
44                 -o "wmsetbg.1"  "$(srcdir)/wmsetbg.in"
46 # Create a 'silent rule' for our make check the same way automake does
47 AM_V_CHKOPTS = $(am__v_CHKOPTS_$(V))
48 am__v_CHKOPTS_  = $(am__v_CHKOPTS_$(AM_DEFAULT_VERBOSITY))
49 am__v_CHKOPTS_0 = @echo "  CHK      $@" ;
50 am__v_CHKOPTS_1 =
52 check-local: wmaker-args WPrefs-args wmagnify-args geticonset-args getstyle-args seticons-args setstyle-args \
53         wdread-args wdwrite-args wmgenmenu-args wmmenugen-args wmsetbg-args wxcopy-args wxpaste-args
55 wmaker-args:
56         $(AM_V_CHKOPTS)$(top_srcdir)/script/check-cmdline-options-doc.sh \
57                 --program "$(top_builddir)/src/wmaker" --man-page "wmaker.1"
59 WPrefs-args:
60         $(AM_V_CHKOPTS)$(top_srcdir)/script/check-cmdline-options-doc.sh \
61                 --program "$(top_builddir)/WPrefs.app/WPrefs" --man-page "$(top_srcdir)/doc/WPrefs.1"
63 wmagnify-args:
64         $(AM_V_CHKOPTS)$(top_srcdir)/script/check-cmdline-options-doc.sh \
65                 --program "$(top_builddir)/util/wmagnify" --man-page "$(top_srcdir)/doc/wmagnify.1"
67 geticonset-args:
68         $(AM_V_CHKOPTS)$(top_srcdir)/script/check-cmdline-options-doc.sh \
69                 --program "$(top_builddir)/util/geticonset" --man-page "$(top_srcdir)/doc/geticonset.1"
71 getstyle-args:
72         $(AM_V_CHKOPTS)$(top_srcdir)/script/check-cmdline-options-doc.sh \
73                 --program "$(top_builddir)/util/getstyle" --man-page "$(top_srcdir)/doc/getstyle.1"
75 seticons-args:
76         $(AM_V_CHKOPTS)$(top_srcdir)/script/check-cmdline-options-doc.sh \
77                 --program "$(top_builddir)/util/seticons" --man-page "$(top_srcdir)/doc/seticons.1"
79 setstyle-args:
80         $(AM_V_CHKOPTS)$(top_srcdir)/script/check-cmdline-options-doc.sh \
81                 --program "$(top_builddir)/util/setstyle" --man-page "$(top_srcdir)/doc/setstyle.1"
83 wdread-args:
84         $(AM_V_CHKOPTS)$(top_srcdir)/script/check-cmdline-options-doc.sh \
85                 --program "$(top_builddir)/util/wdread" --man-page "$(top_srcdir)/doc/wdread.1"
87 wdwrite-args:
88         $(AM_V_CHKOPTS)$(top_srcdir)/script/check-cmdline-options-doc.sh \
89                 --program "$(top_builddir)/util/wdwrite" --man-page "$(top_srcdir)/doc/wdwrite.1"
91 wmgenmenu-args:
92         $(AM_V_CHKOPTS)$(top_srcdir)/script/check-cmdline-options-doc.sh \
93                 --program "$(top_builddir)/util/wmgenmenu" --man-page "$(top_srcdir)/doc/wmgenmenu.1"
95 wmmenugen-args:
96         $(AM_V_CHKOPTS)$(top_srcdir)/script/check-cmdline-options-doc.sh \
97                 --program "$(top_builddir)/util/wmmenugen" --man-page "$(top_srcdir)/doc/wmmenugen.1"
99 wmsetbg-args:
100         $(AM_V_CHKOPTS)$(top_srcdir)/script/check-cmdline-options-doc.sh \
101                 --program "$(top_builddir)/util/wmsetbg" --man-page "wmsetbg.1"
103 wxcopy-args:
104         $(AM_V_CHKOPTS)$(top_srcdir)/script/check-cmdline-options-doc.sh \
105                 --program "$(top_builddir)/util/wxcopy" --man-page "$(top_srcdir)/doc/wxcopy.1"
107 wxpaste-args:
108         $(AM_V_CHKOPTS)$(top_srcdir)/script/check-cmdline-options-doc.sh \
109                 --program "$(top_builddir)/util/wxpaste" --man-page "$(top_srcdir)/doc/wxpaste.1"
111 .PHONY: wmaker-args WPrefs-args wmagnify-args geticonset-args getstyle-args seticons-args setstyle-args \
112         wdread-args wdwrite-args wmgenmenu-args wmmenugen-args wmsetbg-args wxcopy-args wxpaste-args