The output of the moc compiler will contain generated paths which are
only valid on the system at compilation time. Instead, let these
get regenerated on the user's system. The moc compiler is part of
libqt4-dev, which is already a build dependency.
# add some of the variables generated inside the Makefile.swig.gen
BUILT_SOURCES += \
$(swig_built_sources)
-
-# Do not distribute the output of SWIG
-no_dist_files = $(swig_built_sources)
endif
+
+# Do not distribute built sources, they may contain generated paths
+# which are invalid on other systems
+no_dist_files = $(BUILT_SOURCES)