summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-02-17 13:50:24 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-02-17 13:50:24 +0000
commit9078e0974be224b6961ec2b5e415d495f3551c95 (patch)
treefa938a2762a6a0f1a4c89643c40bf00c497a631a /Makefile.am
parent1204f225cba8b68baceaca645e338853dc0a8fba (diff)
downloadrtems-9078e0974be224b6961ec2b5e415d495f3551c95.tar.bz2
2004-02-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: DIST_SUBDIRS = $(SUBDIRS). Rework dist-hook. * configure.ac: Reflect changes to RTEMS_ENABLE_RTEMSBSP. * aclocal/enable-rtemsbsp.m4: Add support for --disable-rtemsbsp.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am22
1 files changed, 13 insertions, 9 deletions
diff --git a/Makefile.am b/Makefile.am
index 13faa3cc90..ed478fd582 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,6 +8,7 @@
ACLOCAL_AMFLAGS = -I aclocal
SUBDIRS = make $(build_SUBDIRS) $(host_SUBDIRS) $(target_SUBDIRS)
+DIST_SUBDIRS = $(SUBDIRS)
ACLOCAL_FILES =
ACLOCAL_FILES += aclocal/bsp-alias.m4
@@ -27,16 +28,19 @@ EXTRA_DIST = README.configure SUPPORT VERSION LICENSE $(noinst_SCRIPTS)
EXTRA_DIST += $(ACLOCAL_FILES)
EXTRA_DIST += config-ml.in
-DIST_SUBDIRS = make
+
dist-hook:
- cp -pR $(srcdir)/doc $(distdir)/doc
- find $(distdir)/doc -name '*.t' -print | while read a; do \
- if test -f $${a}exi; then echo "rm $${a}exi"; rm -f $${a}exi; fi; done
- cp -pR $(srcdir)/tools $(distdir)/tools
- cp -pR $(srcdir)/c $(distdir)/c
- cp -pR $(srcdir)/cpukit $(distdir)/cpukit
- cp -pR $(srcdir)/testsuites $(distdir)/testsuites
- cp -pR $(srcdir)/scripts $(distdir)/scripts
+ @files=`(cd $(srcdir); find doc cpukit c scripts testsuites tools \
+ -name configure.ac -print | sed 's,/configure.ac,,' | sort)`; \
+ for i in $$files; do \
+ if test -f $(distdir)/$$i/configure.ac; then : ; \
+ else \
+ d=`dirname $(distdir)/$$i`; \
+ $(mkdir_p) $$d;\
+ echo "cp -pR $(srcdir)/$$i $(distdir)/$$i"; \
+ cp -pR $(srcdir)/$$i $(distdir)/$$i; \
+ fi; \
+ done
rm -f $(distdir)/scripts/setup.cache
rm -f $(distdir)/scripts/*/*.spec
rm -rf `find $(distdir) -name 'autom4te*'`