httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: [PATCH] simplify modules/Makefile
Date Mon, 08 Sep 1997 10:38:49 GMT
+1

Paul Sutton wrote:
> 
> This patch is an alternative to Marc's one to fix BSD make. This one
> simplifies the modules/Makefile directory by removing the fake _clean
> targets and use of non-existent forceme file targets. Basically it
> replaces are the special place code to create "CLEANERS" and fake build
> and clean targets with an "all clean :: ..." syntax.
> 
> Paul
> 
> Index: Configure
> ===================================================================
> RCS file: /export/home/cvs/apachen/src/Configure,v
> retrieving revision 1.150
> diff -u -r1.150 Configure
> --- Configure	1997/09/07 00:34:03	1.150
> +++ Configure	1997/09/08 10:18:08
> @@ -999,35 +997,16 @@
>  echo "INCLUDES2=$INCLUDES2">> modules/Makefile
>  echo "MOD_CFLAGS=\$(INCLUDES2) \$(AUX_CFLAGS)">> modules/Makefile
>  
> -CLEANERS=""
> -for i in $MODDIRS ; do
> -	CLEANERS="$CLEANERS${i}_clean "
> -done
> -
>  cat << EOF >> modules/Makefile
>  MODULES=$MODDIRS
> -CLEANERS=$CLEANERS
> -
> -default: \$(MODULES)
> -	@echo "Done building module subdirectories"
>  
> -clean: \$(CLEANERS)
> -	@echo "Done cleaning module subdirectories"
> -
> -\$(MODULES): ForceMe
> -	(cd \$@; \$(MAKE) CC='\$(CC)' AUX_CFLAGS='\$(MOD_CFLAGS)' RANLIB='\$(RANLIB)')
> -
> -ForceMe:
> +all clean :: 
> +	for i in \$(MODULES); do \\
> +	 (cd \$\$i; \\
> +	  \$(MAKE) CC='\$(CC)' AUX_CFLAGS='\$(MOD_CFLAGS)' RANLIB='\$(RANLIB)' \$@);\\
> +	done
>  
>  EOF
> -
> -(
> -for i in $MODDIRS ; do
> -	echo "${i}_clean:"
> -	echo "	(cd ${i}; \$(MAKE) clean)"
> -	echo ""
> -done
> -) >> modules/Makefile
>  
>  for moddir in $AUTODIRS ; do
>  	echo "Creating Makefile in $moddir"
> 
> 
> 


-- 
====================================================================
      Jim Jagielski            |       jaguNET Access Services
     jim@jaguNET.com           |       http://www.jaguNET.com/
            "Look at me! I'm wearing a cardboard belt!"

Mime
View raw message