# Makefile for MS-Word version of B.G.Kolker's Lernolibro
# Mati Pentus, 2001 March 4
# Use under 32-bit MS-Windows
# This Makefile must reside in an immediate subdirectory of the directory
# of the main Makefile (which generates 0simple.htm).

# Requires: nmake, xt, perl, oconv
# Some tasks require: zip, winword, MS Internet Assistant, Mati::ForFiles

# Usage
#       nmake

# Names of temporary files are prefixed by '0'.
# Word doc generation requires human assistance.

version=325

default: ll$(version)doc.zip

# Word doc

0win.htm: ../0simple.htm
  oconv htmlunicode2winx ../0simple.htm 0win.htm

0doc.htm: 0win.htm
  perl -pe"s/<\/P>//gi" 0win.htm >0doc.htm

ll$(version).doc: 0doc.htm
  C:\progs\msoffice\winword\winword 0doc.htm
# Here by hand: 1) save as Word document (using "normal template")
#               2) select all, apply some cyrillic font
#               3) save as ll$(version).doc

ll$(version)doc.zip: ll$(version).doc
  del ll$(version)doc.zip
  zip -9 ll$(version)doc.zip ll$(version).doc
