TARGETTYPE=NONE
PLACE=$(TARGET)

TARGET=leash32.hlp
ERR=$(TARGET:.hlp=.err)
HPJ=$(TARGET:.hlp=.hpj)
RTF=$(TARGET:.hlp=.rtf)

all:: $(TARGET) rename

clean::
	@if exist $(TARGET) del $(TARGET)
	@if exist $(ERR) del $(ERR)

rename:
	@if exist $(TARGET) ren $(TARGET) $(TARGET).tmp
	@if exist $(TARGET).tmp ren $(TARGET).tmp $(TARGET)
	@if exist $(ERR) ren $(ERR) $(ERR).tmp
	@if exist $(ERR).tmp ren $(ERR).tmp $(ERR)

HC=hcw /a /c /m /e

# We rename the file to get a lower-case file.
# It looks like the silly help compiler gives us uppercase.
$(TARGET): $(RTF) $(HPJ)
	$(HC) $(HPJ)
