build: Don't distribute versioninfo.rc in "make dist" tarballs
authorSimon McVittie <smcv@collabora.com>
Mon, 23 Oct 2017 12:18:55 +0000 (13:18 +0100)
committerSimon McVittie <smcv@collabora.com>
Mon, 23 Oct 2017 15:08:32 +0000 (16:08 +0100)
It's generated by configure, so we should not distribute it.
Because it's generated by configure, it is automatically cleaned up
by "make distclean" via $(CONFIG_CLEAN_FILES).

Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103420

dbus/Makefile.am

index cbe4539..b2913ef 100644 (file)
@@ -37,6 +37,9 @@ dbusarchincludedir=$(libdir)/dbus-1.0/include/dbus
 
 lib_LTLIBRARIES=libdbus-1.la
 
+# Initialize to empty so that we can append later
+nodist_libdbus_1_la_SOURCES =
+
 #
 # Deal with W32 .def and version-info.rc stuff
 #
@@ -57,7 +60,10 @@ if DBUS_WIN
 DBUS_LIB_arch_sources =                        \
        dbus-server-win.c                       \
        dbus-server-win.h                       \
-       versioninfo.rc                          \
+       $(NULL)
+
+nodist_libdbus_1_la_SOURCES += \
+       versioninfo.rc \
        $(NULL)
 
 if DBUS_WINCE