You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by Roy Fielding <fi...@hyperreal.com> on 1997/03/24 20:03:55 UTC
cvs commit: apache/src Configure
fielding 97/03/24 11:03:54
Modified: src Configure
Log:
Replaced for loops in generated modules/Makefile with implicit
rules in order to improve portability.
Reviewed by: Chuck Murcko
Revision Changes Path
1.83 +20 -13 apache/src/Configure
Index: Configure
===================================================================
RCS file: /export/home/cvs/apache/src/Configure,v
retrieving revision 1.82
retrieving revision 1.83
diff -C3 -r1.82 -r1.83
*** Configure 1997/03/18 10:23:53 1.82
--- Configure 1997/03/24 19:03:53 1.83
***************
*** 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,616 ----
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"
!
! .SUFFIXES: .build .clean
!
! \$(MODULES):
! (cd \$*; \$(MAKE) CC=\$(CC) AUX_CFLAGS='\$(MOD_CFLAGS)' RANLIB='\$(RANLIB)')
!
! \$(CLEANERS):
! (cd \$*; \$(MAKE) clean)
EOF