1 | # |
---|
2 | # top level directory for RTEMS build tree |
---|
3 | # |
---|
4 | ## |
---|
5 | ## $Id$ |
---|
6 | ## |
---|
7 | |
---|
8 | ACLOCAL_AMFLAGS = -I aclocal |
---|
9 | |
---|
10 | SUBDIRS = make $(build_SUBDIRS) $(host_SUBDIRS) $(target_SUBDIRS) |
---|
11 | DIST_SUBDIRS = $(SUBDIRS) |
---|
12 | |
---|
13 | noinst_SCRIPTS = bootstrap |
---|
14 | |
---|
15 | EXTRA_DIST = README.configure SUPPORT VERSION LICENSE $(noinst_SCRIPTS) |
---|
16 | EXTRA_DIST += config-ml.in |
---|
17 | EXTRA_DIST += ampolish3 |
---|
18 | |
---|
19 | dist-hook: |
---|
20 | @files=`(cd $(srcdir); find doc cpukit c testsuites tools \ |
---|
21 | -name configure.ac -print | sed 's,/configure.ac,,' | sort)`; \ |
---|
22 | for i in $$files; do \ |
---|
23 | if test -f $(distdir)/$$i/configure.ac; then : ; \ |
---|
24 | else \ |
---|
25 | d=`dirname $(distdir)/$$i`; \ |
---|
26 | $(mkdir_p) $$d;\ |
---|
27 | echo "cp -pR $(srcdir)/$$i $(distdir)/$$i"; \ |
---|
28 | cp -pR $(srcdir)/$$i $(distdir)/$$i; \ |
---|
29 | fi; \ |
---|
30 | done |
---|
31 | rm -rf `find $(distdir) -name 'autom4te*'` |
---|
32 | rm -rf `find $(distdir) -name CVS` |
---|
33 | rm -f `find $(distdir) \( -name .cvsignore \ |
---|
34 | -o -name config.status \ |
---|
35 | -o -name config.log \)` |
---|
36 | rm -f `find $(distdir) \( -name '*.bak' \ |
---|
37 | -o -name 'changes' -o -name 'diff' -o -name 'tmp' -o -name 'log' \ |
---|
38 | -o -name '*~' -o -name '.*~' -o -name '.#*' \)` |
---|
39 | find $(distdir) -name '*.in' -print | while read a; do \ |
---|
40 | f=`echo $$a | sed 's,\.in$$,,'`; \ |
---|
41 | if test -f $$f; then echo "rm $$f"; rm $$f; fi; done |
---|
42 | |
---|
43 | include $(top_srcdir)/automake/subdirs.am |
---|
44 | include $(top_srcdir)/automake/host.am |
---|