forked from Imagelibrary/rtems
This patch is an addition to "The big-patch"
CHANGES:
* FIX: c/Makefile.am: bogus comment which changed the behavior of
c/Makefile.am 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]/Makefile.in (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/Makefile.am, based
on dependency tracking with make, instead of applying INSTALL_CHANGE.
REMARK:
* 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.
KNOWN BUGS:
* 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
APPLYING THE PATCH
mv c/src/lib/libbsp/i386/pc386/tools/binpatch.c tools/build
patch -p1 < rtems-rc-19990709-2.diff
autogen
61 lines
1.7 KiB
INI
61 lines
1.7 KiB
INI
#
|
|
# $Id$
|
|
#
|
|
# make/directory.cfg
|
|
#
|
|
# Make(1) configuration file include'd by all directory-level Makefile's.
|
|
#
|
|
# See also make/main.cfg
|
|
#
|
|
|
|
# This is a simplified variant of automake-1.4's rule for handling
|
|
# subdirectories
|
|
$(RECURSE_TARGETS):
|
|
@set fnord $(MAKEFLAGS); amf=$$2; \
|
|
dot_seen=no; \
|
|
target=`echo $@ | sed -e s/-recursive// -e s/debug_// -e s/profile_// `; \
|
|
list='$(SUB_DIRS)'; for subdir in $$list; do \
|
|
echo "Making $$target in $$subdir"; \
|
|
local_target="$$target"; \
|
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
|
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
|
done && test -z "$$fail"
|
|
|
|
|
|
# mostlyclean-recursive maintainer-clean-recursive:
|
|
clean-recursive \
|
|
distclean-recursive:
|
|
@set fnord $(MAKEFLAGS); amf=$$2; \
|
|
dot_seen=no; \
|
|
rev=''; list='$(SUB_DIRS)'; for subdir in $$list; do \
|
|
rev="$$subdir $$rev"; \
|
|
test "$$subdir" = "." && dot_seen=yes; \
|
|
done; \
|
|
test "$$dot_seen" = "no" && rev=". $$rev"; \
|
|
target=`echo $@ | sed s/-recursive//`; \
|
|
for subdir in $$rev; do \
|
|
echo "Making $$target in $$subdir"; \
|
|
if test "$$subdir" = "."; then \
|
|
local_target="$$target-am"; \
|
|
else \
|
|
local_target="$$target"; \
|
|
fi; \
|
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
|
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
|
done && test -z "$$fail"
|
|
|
|
clean-am: clean-generic
|
|
distclean-am: distclean-generic clean-am
|
|
|
|
preinstall: preinstall-recursive
|
|
.PHONY: preinstall preinstall-am preinstall-recursive
|
|
|
|
distclean: distclean-recursive
|
|
-$(RM) config.status
|
|
|
|
.PHONY: distclean distclean-am distclean-recursive
|
|
|
|
clean: clean-recursive
|
|
.PHONY: clean clean-am clean-recursive
|
|
|