if MINGW
  MAYBE_FZSHELLEXT = fzshellext/32 fzshellext/64
endif

if HAVE_LIBPUGIXML
else
  MAYBE_PUGIXML = pugixml
endif

if HAVE_DBUS
  MAYBE_DBUS = dbus
endif

if ENABLE_STORJ
  MAYBE_STORJ = storj
endif

SUBDIRS = include engine $(MAYBE_PUGIXML) $(MAYBE_DBUS) interface putty $(MAYBE_STORJ) $(MAYBE_FZSHELLEXT) .
DIST_SUBDIRS = include engine pugixml dbus interface putty storj fzshellext/64 .

dist_noinst_DATA = FileZilla.sln Dependencies.props.example

dist-hook:
	mkdir -p $(distdir)/fzshellext/32
	mv -f $(distdir)/fzshellext/64/* $(distdir)/fzshellext
	rm -rf $(distdir)/config
	rm -rf $(distdir)/m4

if MACAPPBUNDLE

noinst_DATA = dylibs.copied

dylibs.copied: $(top_builddir)/FileZilla.app/Contents/MacOS/*
	"$(top_srcdir)/data/dylibcopy.sh" "$(top_builddir)/FileZilla.app"
	@touch dylibs.copied

CLEANFILES = dylibs.copied

endif
