r899: remove the weird shell patterns from the makerules
authorStefan Metzmacher <metze@samba.org>
Wed, 26 May 2004 06:31:24 +0000 (06:31 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:56:18 +0000 (12:56 -0500)
they slowdown the build

metze

source/build/smb_build/makefile.pl

index ec7853e0e09c5a00b9e8f349460432ca78a0c2e0..0b85fac92621e8732c9fb518d3ffb20822a6422d 100644 (file)
@@ -146,22 +146,10 @@ sub _prepare_dummy_MAKEDIR()
        my $output;
 
        $output = "
-MAKEDIR = || exec false; \\
-         if test -d \"\$\$dir\"; then :; else \\
-         echo mkdir \"\$\$dir\"; \\
-         mkdir -p \"\$\$dir\" >/dev/null 2>&1 || \\
-         test -d \"\$\$dir\" || \\
-         mkdir \"\$\$dir\" || \\
-         exec false; fi || exec false
-
 bin/.dummy:
-       \@if (: >> \$\@ || : > \$\@) >/dev/null 2>&1; then :; else \\
-         dir=bin \$(MAKEDIR); fi
        \@: >> \$\@ || : > \$\@
 
 dynconfig.o: dynconfig.c Makefile
-       \@if (: >> \$\@ || : > \$\@) >/dev/null 2>&1; then rm -f \$\@; else \\
-        dir=`echo \$\@ | sed 's,/[^/]*\$\$,,;s,^\$\$,.,'` \$(MAKEDIR); fi
        \@echo Compiling \$*.c
        \@\$(CC) \$(CC_FLAGS) \$(PATH_FLAGS) -c \$< -o \$\@
 \@BROKEN_CC\@  -mv `echo \$\@ | sed 's%^.*/%%g'` \$\@
@@ -200,8 +188,6 @@ sub _prepare_std_CC_rule($$$$$)
 ###################################
 # Start $comment
 .$src.$dst:
-       \@if (: >> \$\@ || : > \$\@) >/dev/null 2>&1; then rm -f \$\@; else \\
-        dir=`echo \$\@ | sed 's,/[^/]*\$\$,,;s,^\$\$,.,'` \$(MAKEDIR); fi
        \@echo $message \$*.$src
        \@\$(CC) \$(CC_FLAGS) $flags -c \$< -o \$\@
 \@BROKEN_CC\@  -mv `echo \$\@ | sed 's%^.*/%%g'` \$\@