[ovs-dev] [PATCH] Makefile: Check for undistributed files on every make, not just "make dist".
Justin Pettit
jpettit at nicira.com
Mon Dec 13 22:19:32 UTC 2010
On Dec 6, 2010, at 11:33 AM, Ben Pfaff wrote:
> +CLEANFILES += all-distfiles all-gitfiles missing-distfiles
> +# 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
...
> diff --git a/datapath/Makefile.am b/datapath/Makefile.am
> index 71e2dc4..1c0af40 100644
> --- a/datapath/Makefile.am
> +++ b/datapath/Makefile.am
>
> +# 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
For consistency, do you want to prepend that first "srcdirstrip" line with an "@"?
--Justin
More information about the dev
mailing list