diff --git a/data/Makefile.am b/data/Makefile.am index c34b2916ff5846f3c71fe0f3c73fef6d381155bd..7bca50fc11a77c2201a50388eb4834d668264418 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -14,7 +14,13 @@ sounds_DATA = $(srcdir)/sounds/*.wav otherdir = $(pkgdatadir)/data/other other_DATA = other/servers.xml other/cacerts.pem -man_MANS = gajim.1 gajim-remote.1 +if BUILD_REMOTE_CONTROL +OPTIONAL_MAN = gajim-remote.1 +else +OPTIONAL_MAN = +endif + +man_MANS = gajim.1 $(OPTIONAL_MAN) EXTRA_DIST = $(desktop_in_files) \