--- docs/Makefile.in.orig	2008-12-04 19:27:08.000000000 +0100
+++ docs/Makefile.in	2008-12-04 19:30:20.000000000 +0100
@@ -247,14 +247,18 @@
 sysconfdir = @sysconfdir@
 target_alias = @target_alias@
 man_MANS = gftp.1
+.ifndef WITHOUT_X11
 SUBDIRS = sample.gftp
+.endif
 EXTRA_DIST = USERS-GUIDE gftp.1 gftp.desktop gftp.lsm gftp.png parse-netrc.pl \
            gftp-faq.sgml
 
+.ifdef HAVE_GNOME
 Utilitiesdir = $(datadir)/applications
 Utilities_DATA = gftp.desktop
 Iconsdir = $(datadir)/pixmaps
 Icons_DATA = gftp.png
+.endif
 all: all-recursive
 
 .SUFFIXES:
