From: Sam Hocevar Date: Sat, 25 Oct 2003 03:44:46 +0000 (+0000) Subject: * bootstrap: X-Git-Tag: 0.7.0~718 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5b629ba1082e7f9bbb81bd220e9e55f39fcac854;p=vlc * bootstrap: + Smaller makefiles. + Faster builds. Heh. --- diff --git a/bootstrap b/bootstrap index 0159f9d66b..99bc673470 100755 --- a/bootstrap +++ b/bootstrap @@ -1,7 +1,7 @@ #! /bin/sh ## bootstrap file for the VLC media player -## $Id: bootstrap,v 1.75 2003/10/24 11:53:59 sam Exp $ +## $Id: bootstrap,v 1.76 2003/10/25 03:44:46 sam Exp $ ## ## Authors: Sam Hocevar @@ -181,16 +181,27 @@ SUBDIRS = ${subdirs} libvlcdir = \$(libdir)/vlc/${basedir} include Modules.am +if BUILD_MOZILLA if HAVE_WIN32 # There's no need for pic code on win32 so get rid of this to substantially # reduce the compilation time. pic = no endif +else +pic = no +endif -clean: clean-local clean-local: -rm -f *.a *.so *.dll *.sl *.dylib +all-local: + @set fnord \$\$MAKEFLAGS; amf=\$\$2; targets=\`\\ + if test "\$(plugin)" != "no"; then z=\$\$(\$(VLC_CONFIG) --target plugin); for mod in `sed -n -e 's/^ *SOURCES_\([^ ]*\).*/\1/p' < ${mf} | xargs`; do case "\$\$z" in *\$\${mod}_plugin*) echo lib\$\${mod}_plugin\$(LIBEXT);; esac; done; fi; \\ + if test "\$(builtin)" != "no"; then z=\$\$(\$(VLC_CONFIG) --target builtin); for mod in `sed -n -e 's/^ *SOURCES_\([^ ]*\).*/\1/p' < ${mf} | xargs`; do case "\$\$z" in *\$\${mod}.a*) echo lib\$\${mod}.a;; esac; done; fi; \\ + if test "\$(pic)" != "no"; then z=\$\$(\$(VLC_CONFIG) --target pic); for mod in `sed -n -e 's/^ *SOURCES_\([^ ]*\).*/\1/p' < ${mf} | xargs`; do case "\$\$z" in *\$\${mod}_pic.a*) echo lib\$\${mod}_pic.a;; esac; done; fi; \\ + \`; case "\$\$targets" in *lib*) \$(MAKE) \$(AM_MAKEFLAGS) \$\$targets || case "\$\$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; ;; esac; \\ + test -z "\$\$fail" + EOF for mod in `sed -n -e 's/^ *SOURCES_\([^ ]*\).*/\1/p' < ${mf}` do @@ -219,43 +230,13 @@ EOF EOF if [ "${NODIST}" != "#" ]; then cat >> modules/${dir}/Makefile.am << EOF -clean: clean-${mod} +clean-local: clean-${mod} clean-${mod}: -test -z "\$(nodist_SOURCES_${mod})" || rm -f \$(nodist_SOURCES_${mod}) EOF fi cat >> modules/${dir}/Makefile.am << EOF -all: all-${mod} -all-${mod}: -if BUILD_MOZILLA - @set fnord \$\$MAKEFLAGS; amf=\$\$2; \\ - if test "\$(plugin)" != "no" \\ - && \$(VLC_CONFIG) --target plugin | grep "${dir}/lib${mod}_plugin" >/dev/null 2>&1; then \\ - \$(MAKE) \$(AM_MAKEFLAGS) lib${mod}_plugin\$(LIBEXT) || case "\$\$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \\ - fi; \\ - if test "\$(builtin)" != "no" \\ - && \$(VLC_CONFIG) --target builtin | grep "${dir}/lib${mod}\\.a" >/dev/null 2>&1; then \\ - \$(MAKE) \$(AM_MAKEFLAGS) lib${mod}.a || case "\$\$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \\ - fi; \\ - if test "\$(pic)" != "no" \\ - && \$(VLC_CONFIG) --target builtin pic | grep "${dir}/lib${mod}_pic\\.a" >/dev/null 2>&1; then \\ - \$(MAKE) \$(AM_MAKEFLAGS) lib${mod}_pic.a || case "\$\$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \\ - fi; \\ - test -z "\$\$fail" -else - @set fnord \$\$MAKEFLAGS; amf=\$\$2; \\ - if test "\$(plugin)" != "no" \\ - && \$(VLC_CONFIG) --target plugin | grep "${dir}/lib${mod}_plugin" >/dev/null 2>&1; then \\ - \$(MAKE) \$(AM_MAKEFLAGS) lib${mod}_plugin\$(LIBEXT) || case "\$\$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \\ - fi; \\ - if test "\$(builtin)" != "no" \\ - && \$(VLC_CONFIG) --target builtin | grep "${dir}/lib${mod}\\.a" >/dev/null 2>&1; then \\ - \$(MAKE) \$(AM_MAKEFLAGS) lib${mod}.a || case "\$\$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \\ - fi; \\ - test -z "\$\$fail" -endif - if UNTRUE L${mod}p = lib${mod}_plugin.a D${mod}p = lib${mod}_plugin\$(LIBEXT)