+conky_DEPENDENCIES = $(config_output)
+BUILT_SOURCES = $(config_output)
+CLEANFILES = $(config_output) *.gcda *.gcno
+
+$(config_output): ${config_input}
+ sh $(srcdir)/../text2c.sh ${config_input} $@ defconfig
+endif # BUILD_CONFIG_OUTPUT
+
+# source files always needed for compiling
+mandatory_sources = colours.c colours.h combine.c combine.h common.c common.h \
+ conky.c conky.h core.c core.h diskio.c diskio.h entropy.c entropy.h \
+ exec.c exec.h fs.c fs.h logging.h mail.c mail.h mixer.c mixer.h net_stat.c \
+ net_stat.h template.c template.h timed_thread.c timed_thread.h mboxscan.c \
+ mboxscan.h read_tcp.c read_tcp.h scroll.c scroll.h specials.c \
+ specials.h tailhead.c tailhead.h temphelper.c temphelper.h \
+ text_object.c text_object.h timeinfo.c timeinfo.h algebra.c \
+ algebra.h proc.c proc.h user.c user.h
+
+# source files only needed when the apropriate option is enabled
+audacious = audacious.c audacious.h
+bmpx = bmpx.c bmpx.h
+ibm = ibm.c ibm.h smapi.c smapi.h
+mpd = mpd.c mpd.h libmpdclient.c libmpdclient.h
+moc = moc.c moc.h
+xmms2 = xmms2.c xmms2.h
+linux = linux.c linux.h top.c top.h users.c sony.c sony.h i8k.c i8k.h
+solaris = solaris.c
+freebsd = freebsd.c freebsd.h
+netbsd = netbsd.c netbsd.h
+openbsd = openbsd.c openbsd.h
+port_monitors = libtcp-portmon.c libtcp-portmon.h \
+ tcp-portmon.c tcp-portmon.h
+x11 = x11.c x11.h fonts.c fonts.h
+hddtemp = hddtemp.c hddtemp.h
+eve = eve.c eve.h
+ccurl_thread = ccurl_thread.c ccurl_thread.h
+rss = rss.c rss.h prss.c prss.h
+weather = weather.c weather.h
+lua = llua.c llua.h
+nvidia = nvidia.c nvidia.h
+imlib2 = imlib2.c imlib2.h
+apcupsd = apcupsd.c apcupsd.h
+iconv = iconv_tools.c iconv_tools.h
+
+# make sure the files from above are always included in the distfile
+EXTRA_DIST = $(audacious) $(bmpx) $(ibm) $(mpd) $(moc) $(xmms2) $(linux) \
+ $(solaris) $(freebsd) $(netbsd) $(openbsd) $(port_monitors) \
+ $(x11) $(hddtemp) $(eve) $(ccurl_thread) $(rss) $(weather) \
+ $(lua) $(nvidia) $(imlib2) $(apcupsd)
+
+# collect all selected optional sources
+optional_sources =
+if BUILD_AUDACIOUS
+optional_sources += $(audacious)
+endif