* Makefile.am (LRDE_STRIPPED_DIST_FILES): New.
(LRDE_NODIST_FILES): New.
(dist-hook): Strip distributed files listed in
$(LRDE_STRIPPED_DIST_FILES) using build-aux/strip-lrde, and remove
files in $(LRDE_NODIST_FILES) from the distribution.
---
ChangeLog | 10 +++++++++
Makefile.am | 60 ++++++++++++++++++++++++++++++++++++++++++----------------
2 files changed, 53 insertions(+), 17 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 884aad3..76051a2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,16 @@
2009-06-12 Roland Levillain <roland(a)lrde.epita.fr>
+ Prune the distribution a bit more.
+
+ * Makefile.am (LRDE_STRIPPED_DIST_FILES): New.
+ (LRDE_NODIST_FILES): New.
+ (dist-hook): Strip distributed files listed in
+ $(LRDE_STRIPPED_DIST_FILES) using build-aux/strip-lrde, and remove
+ files in $(LRDE_NODIST_FILES) from the distribution.
+
+2009-06-12 Roland Levillain <roland(a)lrde.epita.fr>
+
Fix Autoconf macro OLN_WITH_LIB.
* m4/oln-with-lib.m4: Add other libraries (dependencies) to
diff --git a/Makefile.am b/Makefile.am
index b812d95..ef0e5c9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -43,22 +43,48 @@ REGEN_SUBDIRS += milena scribo
#<<lrde
-# Unless Make variable MAINTAINER is set to `true' (e.g. by calling
-# `make dist MAINTAINER=true'), do not distribute parts tagged `lrde'
-# (see build-aux/strip-lrde).
-#
-# Remove any trace of olena/oln/lrde from the distribution and reset
-# the GNU build system for the distdir layout.
+## FIXME: All of this it too much ad hoc. Use Git branches to
+## distinguish distributed files from non distributed ones after the
+## conversion of the repository.
+
+LRDE_STRIPPED_DIST_FILES = \
+ $(distdir)/configure.ac \
+ $(distdir)/Makefile.am \
+ $(distdir)/milena/tests/convert/Makefile.am \
+ $(distdir)/milena/tests/extract/Makefile.am \
+ $(distdir)/milena/tests/fun/v2v/Makefile.am \
+ $(distdir)/milena/tests/linear/Makefile.am \
+ $(distdir)/milena/tests/linear/gaussian/Makefile.am \
+ $(distdir)/milena/tests/registration/Makefile.am \
+ $(distdir)/milena/tests/value/Makefile.am
+
+LRDE_NODIST_FILES = \
+ $(distdir)/milena/tests/convert/to_hsl.cc \
+ $(distdir)/milena/tests/extract/blue.cc \
+ $(distdir)/milena/tests/extract/green.cc \
+ $(distdir)/milena/tests/extract/hue.cc \
+ $(distdir)/milena/tests/extract/lum.cc \
+ $(distdir)/milena/tests/extract/red.cc \
+ $(distdir)/milena/tests/extract/sat.cc \
+ $(distdir)/milena/tests/fun/v2v/component.cc \
+ $(distdir)/milena/tests/fun/v2v/hsl_to_rgb.cc \
+ $(distdir)/milena/tests/fun/v2v/rgb_to_hsl.cc \
+ $(distdir)/milena/tests/linear/gaussian.cc \
+ $(distdir)/milena/tests/linear/gaussian/filter.cc \
+ $(distdir)/milena/tests/registration/registration.cc \
+ $(distdir)/milena/tests/value/stack.cc \
+ $(distdir)/scribo
+
+# Do not distribute parts tagged `lrde' (see build-aux/strip-lrde).
dist-hook:
- if test x$(MAINTAINER) != xtrue; then \
- $(top_srcdir)/build-aux/strip-lrde $(distdir)/configure.ac && \
- $(top_srcdir)/build-aux/strip-lrde $(distdir)/Makefile.am && \
- rm -rf $(distdir)/scribo && \
- ( \
- cd $(distdir); \
- set -evx; \
- autoreconf -f -v -i \
- find . -name autom4te.cache | xargs rm -rf \
- ) \
- fi
+ for f in $(LRDE_STRIPPED_DIST_FILES); do \
+ $(top_srcdir)/build-aux/strip-lrde $$f; \
+ done; \
+ rm -rf $(LRDE_NODIST_FILES) && \
+ ( \
+ cd $(distdir); \
+ set -evx; \
+ autoreconf -f -v -i; \
+ find . -name autom4te.cache | xargs rm -rf \
+ )
#>>
--
1.6.2.4