Warning: this is an htmlized version!
The original is here, and
the conversion rules are here.
# This is the `Makefile' file of vtutil4 (version 0.02).
# Author and version: Eduardo Ochs, 2007oct16.
# Location on the web: <http://angg.twu.net/vtutil4/Makefile>
#            htmlized: <http://angg.twu.net/vtutil4/Makefile.html>
#                               (find-angg "vtutil4/README")
#                               (find-angg "vtutil4/")
# This is messy! I'm porting vtutil4 to lua-5.1, and I changed the
# font naming scheme...

# (find-angg "vtutil/vtutil.lua" "e_scripts")
# (find-angg "vtutil/")
# (find-angg "vtutil4/")
# (find-node "(make)Automatic Variables")

# Source files.
# Awgh, these are the old versions...
# I'm not making tgzs from vtutil4 anymore, so I'm not going to worry
# about this now.
#
#LUAFILES = vtfontlib.lua vtutil.lua mathchars.lua inc.lua makefonts_8.lua
#LUAFILES = vtfontlib.lua vtutil.lua mathchars.lua inc.lua
LUAFILES = vtfontlib.lua vtutil51.lua mathchars.lua inc.lua
#CFILES = lbitlib.c piofontx.c
#ORIGFONTS = ega0.8 ega1.8 ega0.16 ega1.16
#ETCFILES = Makefile regex-lua-etags

#OTHERTGZFILES = README Makefile pio_fontx.c defkeymap.map editing-font.png
#.tar.gz $(TARGZ):
#	tar -cvzf $(TARGZ) $(OTHERTGZFILES) $(LUAFILES) $(BASEFONTS)

# Generated files
#
SOS = lbitlib51.so piofontx51.so
# OTHERGENERATEDFILES = isomath.el
OTHERGENERATEDFILES =
VTUTILDEPS = $(SOS)
ALLFONTS = $(ORIGFONTS) $(GENERATEDFONTS)

GENERATEDFONTS = \
    ega0.8.pctoiso.8 \
    ega1.8.pctoiso.8 \
    ega0.16.pctoiso.16 \
    ega1.16.pctoiso.16 \
    ega1.8.pctoiso.modify.8

# (find-node "(make)Text Functions" "$(objects:.o=.c)")
GRIDS = $(ALLFONTS:=.grid)

# Other definitions
# (find-angg ".zshrc" "lua")
#
LUA    = $(HOME)/bin/lua51
LUAINC = $(HOME)/usrc/lua-5.1.4/src
VERSION = 0.02
#
# TARGZ   = vtutil-$(VERSION).tar.gz

# VTUTILE = lua50 vtutil.lua -e
VTUTILE = $(LUA) vtutil51.lua -e

all: $(VTUTILDEPS) TAGS $(GENERATEDFONTS) grids $(OTHERGENERATEDFILES)

clean:
	rm -fv $(SOS) TAGS $(GENERATEDFONTS) $(GRIDS)

# (find-angg     "vtutil4/piofontx51.c")
# (find-anggfile "vtutil4/piofontx51.c" "gcc")
sos: $(SOS)
piofontx51.so:
	gcc -Wall -shared -I$(LUAINC) -o piofontx51.so piofontx51.c
lbitlib51.so:
	gcc -Wall -shared -I$(LUAINC) -o lbitlib51.so lbitlib.c

# (find-es "lua5" "etags")
TAGS: $(LUAFILES)
	etags --lang=none --regex=@regex-lua-etags $(LUAFILES)

fonts: $(GENERATEDFONTS)

%.8.pctoiso.8:          %.8  $(VTUTILDEPS)
	$(VTUTILE) 'Loadpcfont("$<");Writefont("$@")'
%.16.pctoiso.16:        %.16 $(VTUTILDEPS)
	$(VTUTILE) 'Loadpcfont("$<");Writefont("$@")'
%.8.pctoiso.modify.8:   %.8  $(VTUTILDEPS)
	$(VTUTILE) 'Loadpcfont("$<");Modifyfont();Writefont("$@")'
%.16.pctoiso.modify.16: %.16 $(VTUTILDEPS)
	$(VTUTILE) 'Loadpcfont("$<");Modifyfont();Writefont("$@")'
%.setfont:              %    $(VTUTILDEPS)
	@$(VTUTILE) 'Loadfont("$<");Setfont()'
%.grid:                 %    $(VTUTILDEPS)
	$(VTUTILE) 'Loadfont("$<");Writefont("$@")'

.PHONY: %.setfont iso 850 437 16

iso: ega1.8.pctoiso.modify.8.setfont
850: ega0.8.setfont
437: ega0.8.setfont
16:  ega0.16.setfont

grids: $(GRIDS)

# 437:      ega0.8.setfont
# 850:      ega1.8.setfont
# iso-orig: ega1-iso.8.setfont
# iso:      isomath.8.setfont
# 16:       ega0.16.setfont

#isomath.el: $(VTUTILDEPS)
#	$(VTUTILE) 'Prepidtom();Mcomposes();writefile("$@",Composestoel())'

# (ascstr 128 159)
# (ascstr 160 255)

# (find-node "(make)Automatic")
# (find-node "(make)Echoing")


# The "loadkeys" targets.
# This is a mess and will work only for keyboards with the US layout.
# (find-fline "/usr/share/keymaps/i386/qwerty/")
# Our "defkeymap" is not very standard, but anyway.
# (find-fline "~/MTA/latinmath.map")
# (find-fline "~/vtutil/defkeymap.map")
#
mathlatin.map: defkeymap.map composes_latin
	cat defkeymap.map composes_latin > $@
math850.map: defkeymap.map composes_latin table_latin table_850
	cat defkeymap.map composes_latin | $(TRLATINTO850) > $@
#
%.loadkeys: %.map
	loadkeys -q $<


# Local Variables:
# ee-anchor-format: "\n%s"
# End: