source: rtems/c/src/make/directory.cfg @ 13827524

4.115
Last change on this file since 13827524 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[bffb938]1# make/directory.cfg
2#
3#   Make(1) configuration file include'd by all directory-level Makefile's.
4#
5#   See also make/main.cfg
6#
7
[6b7ab9bf]8# This is a simplified variant of automake-1.4's rule for handling
9# subdirectories
[bffb938]10$(RECURSE_TARGETS):
[6b7ab9bf]11        @set fnord $(MAKEFLAGS); amf=$$2; \
12        dot_seen=no; \
[79ce8b2]13        target=`echo $@ | sed -e s/-recursive// -e s/debug_// `; \
[9608320]14        list='$(SUBDIRS)'; for subdir in $$list; do \
[6693a68]15          echo "Making $$target in $$subdir"; \
[6b7ab9bf]16          local_target="$$target"; \
17          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
18           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
19        done && test -z "$$fail"
[6693a68]20
[29e68b75]21
22# mostlyclean-recursive maintainer-clean-recursive:
23clean-recursive \
24distclean-recursive:
25        @set fnord $(MAKEFLAGS); amf=$$2; \
26        dot_seen=no; \
[9608320]27        rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
[29e68b75]28          rev="$$subdir $$rev"; \
29          test "$$subdir" = "." && dot_seen=yes; \
30        done; \
31        test "$$dot_seen" = "no" && rev=". $$rev"; \
32        target=`echo $@ | sed s/-recursive//`; \
33        for subdir in $$rev; do \
34          echo "Making $$target in $$subdir"; \
35          if test "$$subdir" = "."; then \
36            local_target="$$target-am"; \
37          else \
38            local_target="$$target"; \
39          fi; \
40          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
41           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
42        done && test -z "$$fail"
43
44clean-am: clean-generic
45distclean-am: distclean-generic clean-am
46
[6693a68]47preinstall: preinstall-recursive
48.PHONY: preinstall preinstall-am preinstall-recursive
[29e68b75]49
50distclean: distclean-recursive
51        -$(RM) config.status
52
53.PHONY: distclean distclean-am distclean-recursive
54
55clean: clean-recursive
56.PHONY: clean clean-am clean-recursive
57
Note: See TracBrowser for help on using the repository browser.