summaryrefslogtreecommitdiff
path: root/datapath/Makefile.am
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-12-13 14:32:55 -0800
committerBen Pfaff <blp@nicira.com>2010-12-13 14:32:55 -0800
commit39376d06ffe60b4352e7d1a6f0a8d3b662d9aa39 (patch)
tree1bee6efa76263606ba1a9124ba556310b8918ae3 /datapath/Makefile.am
parentee45ad81ab7e9ff6034352b6743985e28fedd649 (diff)
downloadopenvswitch-39376d06ffe60b4352e7d1a6f0a8d3b662d9aa39.tar.gz
Makefile: Check for undistributed files on every make, not just "make dist".
It's really easy to add files to the Git repository but forget to add them to the distributions created by "make dist". I do this regularly, for example. For some time, we've had a check that runs on "make dist" to make sure that the distribution is complete, but I still screw up because I don't run "make dist" all that often. This commit improves the situation, by doing the check on every "make", instead of just on "make dist".
Diffstat (limited to 'datapath/Makefile.am')
-rw-r--r--datapath/Makefile.am10
1 files changed, 10 insertions, 0 deletions
diff --git a/datapath/Makefile.am b/datapath/Makefile.am
index 71e2dc485..1c0af40c2 100644
--- a/datapath/Makefile.am
+++ b/datapath/Makefile.am
@@ -10,3 +10,13 @@ AUTOMAKE_OPTIONS = -Wno-portability
include Modules.mk
include linux-2.6/Modules.mk
+
+# The following is based on commands for the Automake "distdir" target.
+distfiles: Makefile
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t" | sort -u > $@
+CLEANFILES = distfiles