source: rtems/automake/ @ 29e68b75
Last change on this file since 29e68b75 was 29e68b75, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 26, 1999 at 9:26:44 PM

Patch from Ralf Corsepius <corsepiu@…>:

This patch is an addition to "The big-patch"


  • FIX: c/ bogus comment which changed the behavior of c/ removed
  • FIX: make/custom/ts_i386ex.cfg did not set HAS_NETWORKING correctly (Me thinks it might have been me who added this bogus setting :-).
  • NEW: removing make targets get, protos, debug_install, profile_install
  • NEW: replacing clobber with distclean
  • NEW: Reimplement distclean and clean as reverse depth first make targets (adaptation to automake's behavior)
  • NEW: removing RCS_CLEAN from make distclean (tools/build/rcs_clean is still in - remove it?)
  • NEW: "$(RM) Makefile" added to make distclean (adaptation to automake's behavior)
  • NEW: "$(RM) config.cache config.log" to CLOBBER_ADDITIONS in [lib|exec|tests]/ (adaptation to automake's behavior)
  • NEW: "$(CLEAN_PROTOS)" removed (Not used anywhere)
  • NEW: binpatch.c moved from i386 bsp tools to tools/build (AFAIS, binpatch is not specific to the pc386 BSP at all)
  • NEW: AC_EXEEXT added to all configure scripts which contain AC_PROG_CC (Cygwin support)
  • NEW/Experimental: An experimental implementation of temporary installation tree support in libbsp/i386/pc386/tools/, based on dependency tracking with make, instead of applying INSTALL_CHANGE.


  • This patch is small in size, but changes the behavior of "make clean|distclean|clobber" basically.
  • This patch does not alter building/compiling RTEMS, ie. there should be no need to rerun all "make all" building tests.


  • make RTEMS_BSP="..." distclean in c/ runs "make distclean" in BSPs subdirectories passed through RTEMS_BSP and in "c/." only, but does not descend into other BSP subdirectories previously configured with different settings of make RTEMS_BSP="...". => Workaround: always use the same setting of RTEMS_BSP when working inside the build-tree.
  • "make [distclean|clean]" do not clean subdirectories, which have been configured at configuration time, but which are not used due to make-time configuration (e.g. macros/networking/rdgb subdirectories). This will problem will vanish by itself when migrating from make-time to configuration-time configuration


mv c/src/lib/libbsp/i386/pc386/tools/binpatch.c tools/build
patch -p1 < rtems-rc-19990709-2.diff

  • Property mode set to 100644
File size: 1.2 KB
1## $Id$
3## Borrowed from automake-1.4 and adapted to RTEMS
5## NOTE: This is a temporary work-around to keep
6## RTEMS's non automake standard make targets working.
7## Once automake is fully integrated these make targets
8## and this file will probably be removed
10depend-recursive \
11preinstall-recursive \
12debug-recursive \
14        @set fnord $(MAKEFLAGS); amf=$$2; \
15        dot_seen=no; \
16        target=`echo $@ | sed s/-recursive//`; \
17        list='$(SUBDIRS)'; for subdir in $$list; do \
18          echo "Making $$target in $$subdir"; \
19          if test "$$subdir" = "."; then \
20            dot_seen=yes; \
21            local_target="$$target-am"; \
22          else \
23            local_target="$$target"; \
24          fi; \
25          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
26## This trick allows "-k" to keep its natural meaning when running a
27## recursive rule.
28           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
29        done; \
30        if test "$$dot_seen" = "no"; then \
31          $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
32        fi; test -z "$$fail"
34debug: debug-recursive
35.PHONY: debug-recursive
37profile: profile-recursive
38.PHONY: profile-recursive
40preinstall: preinstall-recursive
41.PHONY: preinstall-recursive
43depend: depend-recursive
44.PHONY: depend-recursive
Note: See TracBrowser for help on using the repository browser.