source: rtems/automake/subdirs.am @ 9b8baa1

4.104.114.84.9
Last change on this file since 9b8baa1 was 9b8baa1, checked in by Joel Sherrill <joel.sherrill@…>, on Mar 23, 1999 at 6:02:17 PM

Automake II patch from Ralf Corsepius <corsepiu@…>. Email
description follows:

Description:

  • automake for *all* tool subdirectories (Makefile.am, configure.in etc.)
  • autogen now also considers CONFIG_HEADER (generates stamp-h.ins and config.h.ins)
  • c/src/tests/tools/generic/difftest and c/src/tests/tools/generic/sorttimes generated by configure scripts
  • c/update-tools/ampolish, beautifier for Makefile.ams, similar to acpolish
  • rtems-polish.sh added to c/update-tools/ + ampolish support
  • New subdirectory ./automake, contains automake -Makefile fragments to support RTEMS make "debug, debug_install, profile, profile_install" for native Makefile.ams (== ignore these make targets).
  • aclocal/rtems-top.m4's RTEMS_TOP now reads the automake makefile variable VERSION from RTEMS ./VERSION file.
  • ./configure.in uses the macros from aclocal + support for the tools' configure scripts

Remarks:

  • To run rtems-polish.sh, "cd <rtems-source-tree>; ./c/update-tools/rtems-polish.sh"
  • AFAIS, now all native subdirectories are converted to automake (Please drop me a note, if I forgot something).
  • Unless you notice something fatal, IMO the time has come for a public try (== snapshot). I do not intend to send more automake related patches within, say 2 weeks, to give these patches time to settle and to give me some time to think on how to continue.
  • The patch assumes installation to the new main installation directory [$(prefix)].
  • Property mode set to 100644
File size: 1.3 KB
Line 
1# $Id$
2
3# Borrowed from automake-1.4, adapted to support RTEMS's
4# "make debug", "make debug_install", "make profile", "make profile_install"
5
6# NOTE: This is a temporary work-around to keep
7# "make debug" and "make debug_install" working.
8# Once automake is fully integrated these make targets
9# and this file will probably be removed
10
11
12debug-recursive debug_install-recursive \
13profile-recursive profile_install-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"
33
34debug: debug-recursive
35
36debug_install: debug_install-recursive
37
38profile: profile-recursive
39
40profile_install: profile_install-recursive
41
42.PHONY: \
43debug debug-recursive debug_install \
44profile profile-recursive profile_install
Note: See TracBrowser for help on using the repository browser.