Skip to content

Commit

Permalink
Fix nmake install fails when there are no shared extensions
Browse files Browse the repository at this point in the history
check for existence instead of muting everything

check for exe existence before trying to copy
  • Loading branch information
dktapps authored and weltling committed Aug 31, 2017
1 parent 4e9c3e9 commit 2e77f5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions win32/build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ really-install:
@if not exist $(PHP_PREFIX) mkdir $(PHP_PREFIX)
@if not exist $(PHP_PREFIX)\ext mkdir $(PHP_PREFIX)\ext
@echo Installing files under $(PHP_PREFIX)
@copy $(BUILD_DIR)\*.exe $(PHP_PREFIX) /y >nul
@copy $(BUILD_DIR)\php_*.dll $(PHP_PREFIX)\ext /y >nul
dir /b $(BUILD_DIR)\php_*.dll > $(BUILD_DIR)\extension_dlls.txt
@if exist $(BUILD_DIR)\*.exe copy $(BUILD_DIR)\*.exe $(PHP_PREFIX) /y >nul
@touch $(BUILD_DIR)\extension_dlls.txt
@if exist $(BUILD_DIR)\php_*.dll copy $(BUILD_DIR)\php_*.dll $(PHP_PREFIX)\ext /y >nul & dir /b $(BUILD_DIR)\php_*.dll > $(BUILD_DIR)\extension_dlls.txt
@xcopy $(BUILD_DIR)\*.dll /exclude:$(BUILD_DIR)\extension_dlls.txt $(PHP_PREFIX) /y >nul
@echo Registering event source with syslog (requires admin rights)
@echo It's okay for this step to fail:
Expand Down

0 comments on commit 2e77f5e

Please sign in to comment.