diff --git a/doc/Makefile.am b/doc/Makefile.am index 904e3d84..fff203fa 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -17,17 +17,17 @@ dist_man_MANS = \ wmagnify.1x \ wmgenmenu.1 \ wmmenugen.1 \ - wmsetbg.1x \ WPrefs.1x \ wxcopy.1x \ wxpaste.1x man_MANS = \ - wmaker.1x + wmaker.1x \ + wmsetbg.1x -MOSTLYCLEANFILES = wmaker.1x +MOSTLYCLEANFILES = wmaker.1x wmsetbg.1x -EXTRA_DIST = wmaker.in +EXTRA_DIST = wmaker.in wmsetbg.in wmaker.1x: wmaker.in Makefile $(top_builddir)/config.h $(AM_V_GEN)$(top_srcdir)/script/replace-ac-keywords.sh \ @@ -36,6 +36,11 @@ wmaker.1x: wmaker.in Makefile $(top_builddir)/config.h -D"pkgdatadir=$(pkgdatadir)" --replace "pkgdatadir" \ -o "wmaker.1x" "$(srcdir)/wmaker.in" +wmsetbg.1x: wmsetbg.in Makefile $(top_builddir)/config.h + $(AM_V_GEN)$(top_srcdir)/script/replace-ac-keywords.sh \ + --header "$(top_builddir)/config.h" --filter "USE_XINERAMA" \ + -o "wmsetbg.1x" "$(srcdir)/wmsetbg.in" + # Create a 'silent rule' for our make check the same way automake does AM_V_CHKOPTS = $(am__v_CHKOPTS_$(V)) am__v_CHKOPTS_ = $(am__v_CHKOPTS_$(AM_DEFAULT_VERBOSITY)) @@ -87,7 +92,7 @@ wmgenmenu-args: wmsetbg-args: $(AM_V_CHKOPTS)$(top_srcdir)/script/check-cmdline-options-doc.sh \ - --program "$(top_builddir)/util/wmsetbg" --man-page "$(top_srcdir)/doc/wmsetbg.1x" + --program "$(top_builddir)/util/wmsetbg" --man-page "wmsetbg.1x" wxcopy-args: $(AM_V_CHKOPTS)$(top_srcdir)/script/check-cmdline-options-doc.sh \ diff --git a/doc/wmsetbg.1x b/doc/wmsetbg.in similarity index 97% rename from doc/wmsetbg.1x rename to doc/wmsetbg.in index 2125ad02..0139fec8 100644 --- a/doc/wmsetbg.1x +++ b/doc/wmsetbg.in @@ -75,9 +75,9 @@ print the version of Window Maker from which the program comes .TP .BR \-\-workspace | \-w " \fIworkspace\fP" update background only for the specified \fIworkspace\fP -.TP -.BR \-\-xinerama | \-X -stretch image across Xinerama heads +@USE_XINERAMA@.TP +@USE_XINERAMA@.BR \-\-xinerama | \-X +@USE_XINERAMA@stretch image across Xinerama heads .SH "INDEXED COLOR SCREENS" If your screen is not in a \fBTrue Color\fP configuration (generally sold as 16,777,216 colors) but in a indexed color mode (256 colors, 16 colors, ... which are based on a \fBColorMap\fP) then Window