summaryrefslogtreecommitdiff
path: root/Makefile.win
diff options
context:
space:
mode:
authorGregg Lewis Smith <gsmith@apache.org>2012-12-13 22:43:31 +0000
committerGregg Lewis Smith <gsmith@apache.org>2012-12-13 22:43:31 +0000
commit9875cc5fabcf7f42ffb986683c1ef2fb82a5f500 (patch)
treeb0e30b3f39ba24561ec35cb0f21e5862e9dd0775 /Makefile.win
parent2f58146baea79d4e62e4d9c5650882ea7660c508 (diff)
downloadhttpd-9875cc5fabcf7f42ffb986683c1ef2fb82a5f500.tar.gz
Add note about _fixshebang target in comments
Remove _install dependency, is not needed and will cause problems. If the cgi-bin folder does not exist yet, do nothing. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1421591 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'Makefile.win')
-rw-r--r--Makefile.win24
1 files changed, 15 insertions, 9 deletions
diff --git a/Makefile.win b/Makefile.win
index 81ba86dd8f..6751d64c9a 100644
--- a/Makefile.win
+++ b/Makefile.win
@@ -1,14 +1,18 @@
# Makefile for Windows NT and Windows 95/98/2000
# Targets are:
-# _buildr - build Apache in Release mode
-# _buildd - build Apache in Debug mode
-# installr - build and install a Release build
-# installd - build and install a Debug build
-# clean - remove (most) generated files
-# _cleanr - remove (most) files generated by a Release build
-# _cleand - remove (most) files generated by a Debug build
-# _browse - build the browse info file
+# _buildr - build Apache in Release mode
+# _buildd - build Apache in Debug mode
+# installr - build and install a Release build
+# installd - build and install a Debug build
+# clean - remove (most) generated files
+# _cleanr - remove (most) files generated by a Release build
+# _cleand - remove (most) files generated by a Debug build
+# _browse - build the browse info file
+# _fixshebang - add proper shebang lines to activate installed
+# printenv files
+# Note: _fixshebang must be run separately and is not
+# run by any of the above install* targets.
#
# The following install defaults may be customized;
#
@@ -1120,7 +1124,8 @@ BEGIN {
del .y
del .a
-_fixshebang: _install
+_fixshebang:
+!IF EXIST("$(INSTDIR)\cgi-bin")
-awk -f <<script.awk "docs/cgi-examples/printenv" > "$(INSTDIR)\cgi-bin\printenv.pl"
BEGIN {
if ( "perl -e \"print $$^X;\"" | getline perlroot ) {
@@ -1158,5 +1163,6 @@ _fixshebang: _install
f.Write c
f.Close
<<
+!ENDIF