httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy T. Fielding" <field...@kiwi.ICS.UCI.EDU>
Subject [PATCH] "make clean" bombs if no subdirectory modules are used
Date Thu, 20 Mar 1997 16:19:22 GMT
The following patch is necessary in order for "make clean" to work
when there are no subdirectory modules selected within Configuration.

.....Roy

Index: Configure
===================================================================
RCS file: /export/home/cvs/apache/src/Configure,v
retrieving revision 1.82
diff -c -r1.82 Configure
*** Configure	1997/03/18 10:23:53	1.82
--- Configure	1997/03/20 16:14:27
***************
*** 590,609 ****
  
  awk >> modules/Makefile < $tmpfile '\
     BEGIN {printf "MODULES="} \
!    ($3 ~ /modules\//) {split ($3, pp, "/"); printf "%s ", pp[2]} \
     END {printf "\n"}'
  cat << EOF >> modules/Makefile
  
! default:
! 	(for dir in \$(MODULES); do \\
! 		cd \$\$dir; \\
! 		\$(MAKE) CC=\$(CC) AUX_CFLAGS='\$(MOD_CFLAGS)' RANLIB='\$(RANLIB)'; \\
! 		cd ..; \\
! 	done)
! 
! clean:	
! 	(for dir in \$(MODULES); do \\
! 		cd \$\$dir; \$(MAKE) clean; \\
! 		cd ..; \\
! 	done)
  EOF
--- 590,614 ----
  
  awk >> modules/Makefile < $tmpfile '\
     BEGIN {printf "MODULES="} \
!    ($3 ~ /modules\//) {split ($3, pp, "/"); printf "%s.build ", pp[2]} \
     END {printf "\n"}'
+ 
+ awk >> modules/Makefile < $tmpfile '\
+    BEGIN {printf "CLEANERS="} \
+    ($3 ~ /modules\//) {split ($3, pp, "/"); printf "%s.clean ", pp[2]} \
+    END {printf "\n"}'
+ 
  cat << EOF >> modules/Makefile
  
! default: \$(MODULES)
! 	@echo "done building module subdirectories"
! 
! clean: \$(CLEANERS)
! 	@echo "done cleaning module subdirectories"
! 
! %.build:
! 	(cd \$*; \$(MAKE) CC=\$(CC) AUX_CFLAGS='\$(MOD_CFLAGS)' RANLIB='\$(RANLIB)')
! 
! %.clean:
! 	(cd \$*; \$(MAKE) clean)
  EOF

Mime
View raw message