###
### A trivial hack to copy the .manifest files along with the binaries
### when building from the command line on Visual Studio 2005
###
### Courtesy of Gustavo Lopes <Apache geleia.net>
### Posted to dev@httpd.apache.org,
### Message-ID: <006901c731ae$97bec180$0201a8c0@cataphract>
###
--- Makefile.win.orig	2006-12-07 11:09:37.000000000 -0600
+++ Makefile.win	2007-01-08 23:55:56.000000000 -0600
@@ -605,6 +605,13 @@
 		inst_exe="$(INSTDIR)\bin"                              \
 		inst_dll="$(INSTDIR)\bin"                              \
 		inst_so="$(INSTDIR)\modules"
+	if EXIST $(LONG)\httpd.exe.manifest                              \
+	  $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=$(SHORT) LONG=$(LONG) \
+		_copybin src_exe=exe.manifest src_dll=dll.manifest       \
+		src_so=so.manifest quiet="-"                             \
+		inst_exe="$(INSTDIR)\bin"                                \
+		inst_dll="$(INSTDIR)\bin"                                \
+		inst_so="$(INSTDIR)\modules"
 	cd srclib\apr-iconv
 	$(MAKE) $(MAKEOPT) -f build\modules.mk.win install \
 		BUILD_MODE=$(LONG) BIND_MODE=shared API_SOURCE=. \

