Make building of Windows .hlp file optional
authorH.G. Muller <h.g.muller@hccnet.nl>
Fri, 27 Dec 2013 19:12:23 +0000 (20:12 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Sat, 4 Jan 2014 11:49:08 +0000 (12:49 +0100)
By using && and || operators in the build recipe, the building of WinBoard
with Cygwin is now not aborted whe the Help Compiler is not installed.

winboard/makefile.gcc

index fcf842f..77fc0b9 100644 (file)
@@ -63,10 +63,7 @@ clean:
 \r
 # Update the help file if necessary\r
 $(PROJ).hlp : $(PROJ).rtf\r
-       $(HC) $(PROJ).hpj\r
-       @cat $(PROJ).err\r
-       @mv $(PROJ).hlp tmp.hlp\r
-       @mv tmp.hlp $(PROJ).hlp # these moves to get the case right\r
+       $(HC) $(PROJ).hpj && @cat $(PROJ).err && @mv $(PROJ).hlp tmp.hlp && @mv tmp.hlp $(PROJ).hlp || true # these moves to get the case right\r
 \r
 \r
 # Update the resource if necessary\r