diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-10-22 00:21:57 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-10-22 00:21:57 +0000 |
commit | 0cc8b7113c9b33ee752c33d36a2cd593aae42705 (patch) | |
tree | da870e699ac8ec9622d6362fea811257907cf438 /tools | |
parent | 5db8081822baa446bd1c81ac68b75c04b0919112 (diff) |
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')
-rw-r--r-- | tools/make.inc | 6 | ||||
-rw-r--r-- | tools/makebmp.inc | 8 |
2 files changed, 7 insertions, 7 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 \ diff --git a/tools/makebmp.inc b/tools/makebmp.inc index e12a52b3eb..d276732b67 100644 --- a/tools/makebmp.inc +++ b/tools/makebmp.inc @@ -7,18 +7,18 @@ SILENT=@ endif $(OBJDIR)/%.c: %.bmp - $(SILENT)mkdir -p `dirname $@` + $(SILENT)mkdir -p $(dir $@) $(SILENT)mkdir -p $(BMPINCDIR) @echo BMP2RB $< $(SILENT)$(BMP2RB) -h $(BMPINCDIR) $< > $@ $(OBJDIR)/%.o: $(OBJDIR)/%.c - $(SILENT)mkdir -p `dirname $@` - @echo CC `basename $<` + $(SILENT)mkdir -p $(dir $@) + @echo CC $(notdir $<) $(SILENT)$(CC) $(CFLAGS) -c $< -o $@ $(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 "x" != "$$each"; then \ |