summaryrefslogtreecommitdiffstats
path: root/tools/make.inc
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-10-22 00:21:57 +0000
committerJens Arnold <amiconn@rockbox.org>2006-10-22 00:21:57 +0000
commit0cc8b7113c9b33ee752c33d36a2cd593aae42705 (patch)
treeda870e699ac8ec9622d6362fea811257907cf438 /tools/make.inc
parent5db8081822baa446bd1c81ac68b75c04b0919112 (diff)
downloadrockbox-0cc8b7113c9b33ee752c33d36a2cd593aae42705.tar.gz
rockbox-0cc8b7113c9b33ee752c33d36a2cd593aae42705.zip
Speed up build process in general by using internal functions of make instead of spawning sub-shells where possible.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11307 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/make.inc')
-rw-r--r--tools/make.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/make.inc b/tools/make.inc
index 344fa23543..e2430a2b6b 100644
--- a/tools/make.inc
+++ b/tools/make.inc
@@ -5,12 +5,12 @@ SILENT=@
endif
$(OBJDIR)/%.o: %.c
- $(SILENT)mkdir -p `dirname $@`
+ $(SILENT)mkdir -p $(dir $@)
@echo "CC $<"
$(SILENT)$(CC) $(CFLAGS) -c $< -o $@
$(OBJDIR)/%.o: %.S
- $(SILENT)mkdir -p `dirname $@`
+ $(SILENT)mkdir -p $(dir $@)
@echo "CC $<"
$(SILENT)$(CC) $(CFLAGS) -c $< -o $@
@@ -26,7 +26,7 @@ $(OBJDIR)/%.o: %.S
# without the proper path.
#
$(DEPFILE): $(SOURCES)
- $(SILENT)mkdir -p `dirname $(DEPFILE)`
+ $(SILENT)mkdir -p $(dir $(DEPFILE))
$(SILENT)rm -f $(DEPFILE)
$(SILENT)(for each in $(SOURCES) x; do \
if test "$$each" = "credits.c"; then \