Bug fix: $@ should not be used in rules with multiple targets targets (causes confusion).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19239 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2008-11-26 22:48:26 +00:00
parent 89c9dbe21c
commit ef6b49815b

View file

@ -16,10 +16,10 @@ SRC += $(call preprocess, $(APPSDIR)/SOURCES)
# button.h is included for the HAS_BUTTON_HOLD define.
#
features $(BUILDDIR)/apps/features $(BUILDDIR)/apps/genlang-features: $(APPSDIR)/features.txt
$(SILENT)mkdir -p $(dir $@)
$(SILENT)mkdir -p $(BUILDDIR)/apps
$(call PRINTS,PP $(<F))
$(SILENT)$(CC) $(PPCFLAGS) \
-E -P -imacros "config.h" -imacros "button.h" -x c $< | \
grep -v "^\#" | grep -v "^$$" > $@; \
for f in `cat $@`; do feat="$$feat:$$f" ; done ; \
grep -v "^\#" | grep -v "^$$" > $(BUILDDIR)/apps/features; \
for f in `cat $(BUILDDIR)/apps/features`; do feat="$$feat:$$f" ; done ; \
echo "$$feat" >$(BUILDDIR)/apps/genlang-features