]> git.sesse.net Git - vlc/commitdiff
* bootstrap: The "clean" rule now also removes generated sources.
authorSam Hocevar <sam@videolan.org>
Mon, 7 Jul 2003 16:53:48 +0000 (16:53 +0000)
committerSam Hocevar <sam@videolan.org>
Mon, 7 Jul 2003 16:53:48 +0000 (16:53 +0000)
bootstrap

index f9d884bd8558f6e7b0e05f8bf13b9d118a0cbfc4..e30aa29e852193d634093b2ba201a953dfe7620b 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -1,7 +1,7 @@
 #! /bin/sh
 
 ##  bootstrap file for the VLC media player
-##  $Id: bootstrap,v 1.65 2003/07/05 14:47:53 sam Exp $
+##  $Id: bootstrap,v 1.66 2003/07/07 16:53:48 sam Exp $
 ##
 ##  Authors: Sam Hocevar <sam@zoy.org>
 
@@ -93,7 +93,8 @@ SUBDIRS = ${subdirs}
 libvlcdir = \$(libdir)/vlc/${basedir}
 include Modules.am
 
-clean:
+clean: clean-local
+clean-local:
        rm -f *.a *.so *.dll *.sl *.dylib
 
 EOF
@@ -122,9 +123,17 @@ EOF
 #   work properly with any automake version I tested.
     cat >> modules/${dir}/Makefile.am << EOF
 # The ${mod} plugin
-
+clean: clean-${mod}
 all: all-${mod}
 
+EOF
+    if [ "${NODIST}" != "#" ]; then cat >> modules/${dir}/Makefile.am << EOF
+clean-${mod}:
+       rm -f \$(nodist_SOURCES_${mod})
+
+EOF
+    fi
+    cat >> modules/${dir}/Makefile.am << EOF
 all-${mod}:
 if BUILD_MOZILLA
        @set fnord \$\$MAKEFLAGS; amf=\$\$2; \\