source: rtems/c/Makefile.am @ 2c48597d

4.104.114.84.95
Last change on this file since 2c48597d was b8f4d19, checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/23/03 at 07:07:46

2003-10-23 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Don't explictly invoke $MAKE preinstall.
  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[811804fe]1##
2## $Id$
3##
[eb299afc]4
[feead226]5ACLOCAL_AMFLAGS = -I ../aclocal
[df49c60]6
[29e68b75]7## NOTE: This Makefile.am is rather fragile to the value of RTEMS_BSP
[df49c60]8## Esp. make clean and make distclean have unwanted side-effects
[29e68b75]9## if RTEMS_BSP is not properly set up.
10
[eb299afc]11RTEMS_BSP = $(RTEMS_BSP_LIST)
[df49c60]12## The '.' in SUBDIRS ensures that local make-targets (xxx-am) will be
[eb299afc]13## triggered before $(RTEMS_BSP_LIST) subdirectories are made.
[d049568]14SUBDIRS = . $(RTEMS_BSP)
[eb299afc]15
16## Use @RTEMS_BSP_LIST@ here, using $(RTEMS_BSP_LIST) would trigger
17## this rule for invalid BSPs
18@RTEMS_BSP_LIST@: src/configure
19        @set fnord $(MAKEFLAGS); amf=$$2; \
20        test -n "${RTEMS_BSP}" && for i in ${RTEMS_BSP}; do \
21          echo "Configuring RTEMS_BSP=$$i"; \
[ceddf30]22          $(mkinstalldirs) $$i; \
[eb299afc]23          ( cd $$i && \
[b8f4d19]24            CONFIG_SHELL=$(SHELL) RTEMS_BSP=$$i $(rtems_bsp_configure) ) \
[eb299afc]25          || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
26        done
27
28## Let all RTEMS' make targets depend on ${RTEMS_BSP}
[df49c60]29all-local: ${RTEMS_BSP}
[eb299afc]30preinstall-am: ${RTEMS_BSP}
31depend-am: ${RTEMS_BSP}
32
33## Pull in extra files intro the distribution
[299ebb4]34EXTRA_DIST = ACKNOWLEDGEMENTS
35EXTRA_DIST += TOOL_TARGETS
[eb299afc]36
37DIST_SUBDIRS = ${RTEMS_BSP}
[811804fe]38## -------------------------------------------------------
[eb299afc]39include $(top_srcdir)/../automake/subdirs.am
[df49c60]40include $(top_srcdir)/../automake/host.am
Note: See TracBrowser for help on using the repository browser.