pork-rules.mk
author Benjamin Smedberg <benjamin@smedbergs.us>
Tue, 29 Apr 2008 16:07:01 -0400
changeset 117 1cf47cdb0feb
parent 98 2f5dd5185b9d
permissions -rw-r--r--
A gigantic nuclear furnace...
# Do the dumb things you gotta do... touch the puppet-head

relativesrcdir = $(subst $(topsrcdir)/,,$(srcdir))

IIFILES_LIST = $(error Please specify IIFILES_LIST)

echo-iifiles_tier_%:
	@echo "$@"
	@$(MAKE_TIER_SUBMAKEFILES)
	@$(EXIT_ON_ERROR) \
	  $(foreach dir,$(tier_$*_dirs),$(MAKE) -C $(dir) echo-iifiles; ) true

echo-iifiles::
	@($(foreach f,$(patsubst %.cc,%.ii,$(CPPSRCS:.cpp=.ii)),printf "$(relativesrcdir)/$(f)\n";) true) >> $(IIFILES_LIST)
	+$(LOOP_OVER_DIRS)
	+$(LOOP_OVER_TOOL_DIRS)

# PSM build rules don't use DIRS... recurse manually
ifeq (security/manager,$(relativesrcdir))
echo-iifiles::
	@$(EXIT_ON_ERROR) \
	  $(foreach dir,boot ssl locales pki,$(MAKE) -C $(dir) echo-iifiles; )
endif